Page 1 of 1

Loop Macro

Posted: Feb 20th, ’23, 21:11
by Drakemoor
Hi,

I'm trying to loop a macro and it works well, but I can't make it stop by pressing escape.

Code: Select all

Loop, 3
{
CoordMode, Mouse, Screen
Sleep, 1203
MouseMove, 1644, 938
Send, {LButton}
}
Please help,
tnx

Re: Loop Macro

Posted: Feb 21st, ’23, 21:31
by Tom
This may work

Code: Select all

Loop, 3
{
CoordMode, Mouse, Screen
Sleep, 1203
MouseMove, 1644, 938
Send, {LButton}
Sleep, 10
if GetKeyState("Esc","P")
        break
}

Re: Loop Macro

Posted: Aug 17th, ’23, 00:01
by glrobins
;ctrl-x to stop
^x::ExitApp

Re: Loop Macro

Posted: Aug 20th, ’23, 20:48
by Marko
Use the Reload shorcut to stop the loop - this can be defined in Preferences/General/Shortcuts.