This is my code:
Code: Select all
Loop{
CoordMode Pixel
pic := "C:\Users\Pictures\test.bmp"
ImageSearch, FoundX, FoundY, 743, 375, 1388, 457, *10 %pic%
if ErrorLevel = 2
MsgBox Could not conduct the search.
else if ErrorLevel = 1
mouseclick, left, 823, 785
else
mouseclick, left, 1324, 424
Sleep, 500
break
}