Quote:
Originally Posted by Melli-
It's not Control Click and it doesn't click. Only move the mouse, and that slow..
|
Make it so
#RequireAdmin
#include <ImageSearch.au3>
HotKeySet("{F1}", "Start")
HotKeySet("{F2}", "Pause")
HotKeySet("{F3}", "Stop")
ControlClick("BlueStacks", "", "[BlueStacks.exe;Instance: 1])", "left", 1, 1, 1) ;thats for my Bluestacks
$x1 = 0
$y1 = 0
Func Start()
While 1
$result = _ImageSearch("99.bmp", 1, $x1, $y1, 60)
If $result = 1 Then
$result = _ImageSearch("98.bmp", 1, $x1, $y1, 60)
If $result = 1 Then
MouseClick("left", $x1, $y1, 1)
Sleep(1000)
EndIf
EndIf
WEnd
EndFunc ;==>Start
While 1
Sleep(100)
WEnd
Func Pause()
Sleep(36000000)
EndFunc ;==>Pause
Func Stop()
Exit
EndFunc ;==>Stop
Thats Search every time; Exit press F3 , Pause press F2, Start/GO press F1
alle Bilder müssen im selben Ordner wie der script liegen mit 24 Bit gespeichert.
habt spaß damit