As the title says.
I have been having problems with my script. I want it to keep looking for an image, and if it can't find it then it should wait 5 seconds and try to look for it again.
I am beginner so go easy on me.
My script so far:
#include <imagesearch.au3>
Hotkeyset("s", 'start')
Hotkeyset("x", 'stop')
$x = 0
$y = 0
Func start()
$search = _imagesearch('1pixel.bmp', 0, $x, $y, 0)
If $Search = 1 Then
Mousemove($x, $y,10)
EndIf
EndFunc
While 1
sleep(5000)
Mous