| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon Apr 18, 2005 4:25 pm Post subject: How do I cancel what is already running? |
|
|
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
|
Posted: Mon Apr 18, 2005 4:29 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Apr 18, 2005 4:47 pm Post subject: |
|
|
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
|
Posted: Mon Apr 18, 2005 5:51 pm Post subject: stop |
|
|
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 |
|
 |
Jon
Joined: 28 Apr 2004 Posts: 373
|
Posted: Mon Apr 18, 2005 6:00 pm Post subject: |
|
|
Put this at the very top of your script. Then after you run your script press Ctrl+E to exit it.
|
|
| Back to top |
|
 |
Guest
|
Posted: Mon Apr 18, 2005 8:12 pm Post subject: |
|
|
thank you jon!  |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Apr 18, 2005 8:20 pm Post subject: |
|
|
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.
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
|
Posted: Mon Apr 18, 2005 9:54 pm Post subject: |
|
|
| 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 |
|
 |
freakkk Guest
|
Posted: Mon Apr 18, 2005 10:58 pm Post subject: |
|
|
| 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..)
|
|
| Back to top |
|
 |
|