AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I stop this macro!?!?!?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
AndreMinh



Joined: 18 Dec 2009
Posts: 1

PostPosted: Fri Dec 18, 2009 1:51 am    Post subject: How can I stop this macro!?!?!? Reply with quote

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.]
Back to top
View user's profile Send private message
UncleScrooge



Joined: 14 Apr 2009
Posts: 75
Location: Italy

PostPosted: Fri Dec 18, 2009 8:52 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group