AndreMinh
Joined: 18 Dec 2009 Posts: 1
|
Posted: Fri Dec 18, 2009 1:51 am Post subject: How can I stop this macro!?!?!? |
|
|
This is the current script I'm running... A small portion of the code...
WinWait, MouseRecorder,
IfWinNotActive, MouseRecorder, , WinActivate, MouseRecorder,
WinWaitActive, MouseRecorder,
MouseClick, left, 838, 295
Sleep, 100
MouseClick, left, 706, 501
Sleep, 100
MouseClick, left, 864, 319
Sleep, 100
MouseClick, left, 713, 503
Sleep, 100
MouseClick, left, 824, 344
Sleep, 100
MouseClick, left, 732, 511
Sleep, 100
MouseClick, left, 827, 347
Sleep, 100
MouseClick, left, 724, 504
Sleep, 100
MouseClick, left, 835, 306
Sleep, 100
MouseClick, left, 705, 509
Sleep, 100
What I need is...
If the script is currently running, seeing I need to this to click about 6K times. If it is in a running state/process. How can I manually stop it? Seeing how I been stopping a running macro is to manually reboot my computer... Can someone please help me???
[Moderator's note: Split from AutoHotkey_L - completely off-topic.] |
|
UncleScrooge
Joined: 14 Apr 2009 Posts: 75 Location: Italy
|
Posted: Fri Dec 18, 2009 8:52 am Post subject: |
|
|
I hope I have understood what you are asking.
If you want to stop a script at any time you can assign, in the autoexec section of your script, an Hotkey to that pourpose.
This example will terminate the script when you press diifferent keys or combinations of keys:
| Code: | #q::ExitApp ;Win+q
^!q::ExitApp ;Ctrl+Alt+q | or you can set any other combination of keys. Once the script has been terminated, that combination will have, of course, no more effects. Hope this was what you were asking for. _________________ Intel Centrino @ 2.8GHz
4 GB RAM
WIN XP SP3 |
|