| View previous topic :: View next topic |
| Author |
Message |
nvpdude
Joined: 31 Jan 2010 Posts: 6
|
Posted: Sun Jan 31, 2010 6:17 pm Post subject: Exit Script |
|
|
First of all, I am a beginner, so I hope you understand if you think the question is stupid.
I need help with an Exit Script. I need a code that exits the script on the press of a button.
Please help!  |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jan 31, 2010 6:19 pm Post subject: |
|
|
| ? |
|
| Back to top |
|
 |
nvpdude
Joined: 31 Jan 2010 Posts: 6
|
Posted: Sun Jan 31, 2010 6:24 pm Post subject: |
|
|
Hmm... doesn't seem to be working..
Heres the script, add the exit code in a quote..
| Quote: | MButton::
Click
MouseGetPos, xposi, yposi
yposi+=25
xposi+=5
Click %xposi%, %yposi%
xposi-=5
yposi-=25
MouseMove, %xposi%, %yposi%
|
|
|
| Back to top |
|
 |
Ace Coder
Joined: 26 Oct 2009 Posts: 361
|
Posted: Sun Jan 31, 2010 6:32 pm Post subject: |
|
|
| Code: | | ^x::ExitApp ;Place this code at the bottom of your script, then run the script, then press Ctrl+x to exit the script. |
P.S.NEVER act as commanding and rude as you just did, this is highly annoying and ungrateful of you. We don't have to help you.
| Ungrateful Guest wrote: | | Heres the script, add the exit code in a quote.. |
And in the future: READ THE MANUAL! _________________ Check out the new AHK forum competition! |
|
| Back to top |
|
 |
nvpdude
Joined: 31 Jan 2010 Posts: 6
|
Posted: Sun Jan 31, 2010 6:37 pm Post subject: |
|
|
| Ace Coder wrote: | | Code: | | ^x::ExitApp ;Place this code at the bottom of your script, then run the script, then press Ctrl+x to exit the script. |
P.S.NEVER act as commanding and rude as you just did, this is highly annoying and ungrateful of you. We don't have to help you.
| Ungrateful Guest wrote: | | Heres the script, add the exit code in a quote.. |
And in the future: READ THE MANUAL! |
Sorry for that!  |
|
| Back to top |
|
 |
nvpdude
Joined: 31 Jan 2010 Posts: 6
|
Posted: Sun Jan 31, 2010 6:39 pm Post subject: |
|
|
Well it doesn't seem to be working...
It automatically closes after one use..
And sorry for being rude  |
|
| Back to top |
|
 |
Ace Coder
Joined: 26 Oct 2009 Posts: 361
|
Posted: Sun Jan 31, 2010 6:51 pm Post subject: |
|
|
You need to add a return above the ExitApp hotkey.
| Code: | ;I am code
;I am more code
;I am still code
;Where did you learn to be code?
Return ;Tells the script to stop executing code and wait.
^x::ExitApp ;Place this code at the bottom of your script, then run the script, then press Ctrl+x to exit the script. |
Sorry for being rude but I was a little upset at something else.
Have a good day!
Cheers _________________ Check out the new AHK forum competition! |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jan 31, 2010 7:19 pm Post subject: |
|
|
Woah... Who was being commanding and rude here? I agree he should have read the manual and searched it for Exit first or the forums but wow.... way to explode on the dude.  |
|
| Back to top |
|
 |
nvpdude
Joined: 31 Jan 2010 Posts: 6
|
Posted: Sun Jan 31, 2010 8:11 pm Post subject: |
|
|
| Anonymous wrote: | Woah... Who was being commanding and rude here? I agree he should have read the manual and searched it for Exit first or the forums but wow.... way to explode on the dude.  |
Well I looked up exit script for autohotkey and found something but it didn't work.. |
|
| Back to top |
|
 |
nvpdude
Joined: 31 Jan 2010 Posts: 6
|
Posted: Sun Jan 31, 2010 8:12 pm Post subject: |
|
|
| Ace Coder wrote: | You need to add a return above the ExitApp hotkey.
| Code: | ;I am code
;I am more code
;I am still code
;Where did you learn to be code?
Return ;Tells the script to stop executing code and wait.
^x::ExitApp ;Place this code at the bottom of your script, then run the script, then press Ctrl+x to exit the script. |
Sorry for being rude but I was a little upset at something else.
Have a good day!
Cheers |
Thanks it works! |
|
| Back to top |
|
 |
|