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 do I cancel what is already running?

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






PostPosted: Mon Apr 18, 2005 4:25 pm    Post subject: How do I cancel what is already running? Reply with quote

Hey! Nice program!

Can anyone tell me how to CANCEL a running script? I have pressed all sorts of buttons including escape, but the script keeps running untill it finishes!


Seriously, this program must have a simple cancel button right?
Back to top
BoBo
Guest





PostPosted: Mon Apr 18, 2005 4:29 pm    Post subject: Reply with quote

Press Exit at the scripts context menu (which will appear if you press its H-Icon which is available at runtime in the TNA)

Hope that helps. Cool
Back to top
Guest






PostPosted: Mon Apr 18, 2005 4:47 pm    Post subject: Reply with quote

Surprised
nope.


let me explain this better.

I opened the autoscriptwritter.ext. Hit record. Moved my mouse up and down about 5 times on my desktop, then stopped recording. I saved this and named it testing.

I double clicked on the testing ahk file, and the mouse moves up an down as it should.

Now how do I stop this, other then letting it complete? Easiest way? I can not control my mouse to click anything when this is going on.
Back to top
enrica



Joined: 21 Mar 2005
Posts: 117
Location: Bahia, Brasil

PostPosted: Mon Apr 18, 2005 5:51 pm    Post subject: stop Reply with quote

open your editor and write:
;----------------------------------------
pause::
process, close, AutoHotkey.exe
process, close, AutoHotkey.exe
process, close, AutoHotkey.exe
process, close, AutoHotkey.exe
process, close, AutoHotkey.exe
process, close, AutoHotkey.exe
;----------------------------------------
save as stop.ahk
now, compile-it (convert with Ahk2Exe.exe)
and save as stop.exe
run-it; and when you have problem to stop your script, press: PAUSE
For stop this exe; right click on icon in the tray
test-it !
Back to top
View user's profile Send private message
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Mon Apr 18, 2005 6:00 pm    Post subject: Reply with quote

Put this at the very top of your script. Then after you run your script press Ctrl+E to exit it.

Code:
^e::Exitapp
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Mon Apr 18, 2005 8:12 pm    Post subject: Reply with quote

thank you jon! Cool
Back to top
Guest






PostPosted: Mon Apr 18, 2005 8:20 pm    Post subject: Reply with quote

It is better then what I had before, but only 1 new problem now.
I have to manually close the old running script now as it does not automatically close. Surprised
So how can I get this to automatically close yet still have this emergency kill button in place?

The script only plays out if the exit command it is at the bottom of the code, I take it that the bottom is referred to as the (top) of the script?
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon Apr 18, 2005 9:54 pm    Post subject: Reply with quote

Quote:
I have to manually close the old running script now as it does not automatically close.
Just add ExitApp to the bottom of the script. This is necessary because the presence of the new hotkey causes the script to be persistent.
Back to top
View user's profile Send private message Send e-mail
freakkk
Guest





PostPosted: Mon Apr 18, 2005 10:58 pm    Post subject: Reply with quote

Quote:
The script only plays out if the exit command it is at the bottom of the code, I take it that the bottom is referred to as the (top) of the script?


you can have your emergency hotkey at top-- you would just want to put 'return' afterwards (so it continues on to remaining script..)

Code:
^e::Exitapp
return
Back to top
Display posts from previous:   
Post new topic   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