deny
Новичок
- Сообщения
- 50
- Репутация
- 2
Код:
#include <ImageSearch.au3>
HotKeySet("{F10}","Stop")
Func stop()
Exit
EndFunc
$x1 = 0
$y1 = 0
$x2 = 0
$y2 = 0
$x3 = 0
$y3 = 0
$res = 0
$res3 = 0
$res2 = 0
While 1
Sleep (250)
$res = _ImageSearch("razdel.bmp",1,$x1,$y1,50)
If $res = 1 Then Return
Sleep (150)
MouseClick('left',$x1, $y1,2)
Sleep (2150)
Else
$res3 = _ImageSearch("boi.bmp",1,$x2,$y2,50)
If $res3 = 1 Then Return
Sleep (150)
MouseClick ("left",$x2, $y2,2)
else
Sleep (250)
$res2 = _ImageSearch("Screenshot_1.bmp",1,$x3,$y3,50)
If $res2 = 1 Then Return
MouseClick('left',$x3, $y3,2)
EndIf
EndIf
EndIf
WEnd
подскажите,почему ошибка