here is the code:
Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Compression=0
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ImageSearch.au3>
HotKeySet("{p}", "checkForImage")
global $y = 0, $x = 0
Func checkForImage()
Local $search = _ImageSearch("Killed3.bmp", 1, $x, $y,1 )
If $search = 1 Then
MouseMove($x, $y, 10)
EndIf
EndFunc
while 1
sleep(200)
WEnd
this is the error:
Code:
\ImageSearch.au3 (44) : ==> Subscript used with non-Array variable.: if $result[0]="0" then return 0 if $result^ ERROR
here are the pics i try to make it look for.







