Why is it giving me and error when i do the ImageSearch, The bmp is in the same location as the Script so why is it doing this? Error Below $result = _ImageSearch('gift.bmp',1,$x,$y,100)
$result = _ImageSearch('gift.bmp',1,^ ERRORScript Below #include <ImageSearch.au3>
HotKeySet("{ENTER}","start")
While 1
Sleep(1)
WEnd
Func start()
While 1
$result = _ImageSearch('gift.bmp',1,$x,$y,100)
If $result = 1 Then
MouseClick("Left",$x,$y,1,10)
EndIf
WEnd
EndFunc