but why does this not execute at all
Code: Select all
Numpad0::
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 10, 94, 1032, 776, C:\Users\home\AppData\Roaming\MacroCreator\Screenshots\Screen_20170922172311.png
If ErrorLevel = 0
Loop
{
MsgBox, 49, Continue?, Image / Pixel Found at %FoundX%x%FoundY%.`nPress OK to continue.
IfMsgBox, Cancel
Return
if Errorlevel =1
{
;MoveMousePoint(629, 171, 7)
MoveMousePoint(636, 182, 7)
Sleep, 350
click
Sleep, 350
return
}
}