Code: Select all
SetKeyDelay 0, 0 , 0
CoordMode, Pixel, Screen
F5::
imageFound := false
while(imageFound = false)
{
imageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\img.png
if(x <> ""){
click, 1072, 606
imgFound := true
}
else {
Send {Click down}
Sleep, 10000
Send {Click up}
}
}
F6::
exitapp