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
While 1
Sleep (250)
$res = _ImageSearch("test.bmp",1,$x1,$y1,50)
If $res = 1 Then
Sleep (250)
MouseClick('left',$x1, $y1,2)
Else
$res3 = _ImageSearch("test1.bmp",1,$x2,$y2,50)
If $res3 = 1 Then
Sleep (250)
MouseClick('left',$x2, $y2,2)
else
Sleep (2500)
$res2 = _ImageSearch("test2.bmp",1,$x3,$y3,50)
If $res2 = 1 Then
MouseClick('left',$x3, $y3,2)
EndIf
EndIf
EndIf
WEnd
Последнее редактирование: