^!r:: ; on Ctrl-Alt-R click Reset repeatedly CoordMode Client ; Interprets the coordinates below as relative to the screen rather than the active window. ImageSearch ResetLocX, ResetLocY, 0, 0, 300, 200, flexsim_Reset.png if (ErrorLevel = 0) { Loop { ClickX := ResetLocX + 30 ClickY := ResetLocY + 10 MouseMove, ClickX, ClickY MouseClick MouseMove, ClickX+25, ClickY+15 Sleep, 1000 } } Esc::ExitApp ; stop on Esc return