Alright so i have finally got his working but i have a question how do i make this code loop/repeat and keep searching for the picture? am still working on the code but i can't seem to understand how i make the script loop/repeat plz help #include <ImageSearch.au3>
HotKeySet("s", "checkForImage")
HotKeySet("c", "close")
global $y = 0, $x = 0
Func checkForImage()
Local $search = _ImageSearch('fish.bmp', 0, $x, $y, 0)
If $search = 1 Then
MouseMove($x, $y, 10)
EndIf
EndFunc
Func close()
Exit
EndFunc
while 1
sleep(200)
WEnd