| View previous topic :: View next topic |
| Author |
Message |
dwaynek
Joined: 20 Dec 2005 Posts: 61
|
Posted: Tue Sep 16, 2008 2:32 pm Post subject: how do i pause a script and resume on pressing enter? |
|
|
how do i pause a script midway during execution and wait for the enter key to be pressed before resuming?
[ Moderator!: Moved from Scripts and Functions ] |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Tue Sep 16, 2008 3:02 pm Post subject: |
|
|
| Code: | | KeyWait, Enter, D ; Pause the script until Enter is keyed in |
Given the fact that you had registered in our forum before me, I cannot make any sense why have posted a query in Scripts and Functions!  _________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
dwaynek
Joined: 20 Dec 2005 Posts: 61
|
Posted: Tue Sep 16, 2008 3:59 pm Post subject: |
|
|
| haha right you are! wrong click of the mouse! |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Tue Sep 16, 2008 6:42 pm Post subject: |
|
|
Its okay.. but did I answer your query right?.. Thinking it again..
The above can halt a loop, like in
| Code: | Loop {
Tooltip, %A_Now%
Sleep 1
}
Return
Enter::Pause |
Or maybe, even a Message Box would suffice
| Code: | | Msgbox, Press Enter to Continue |
 |
|
| Back to top |
|
 |
dwaynek
Joined: 20 Dec 2005 Posts: 61
|
Posted: Mon Dec 29, 2008 9:13 pm Post subject: |
|
|
| i actually want a solution where it sends output, pauses for input (without a msgbox), then when i press ENTER, it continues on with the macro. |
|
| Back to top |
|
 |
dwaynek
Joined: 20 Dec 2005 Posts: 61
|
Posted: Mon Dec 29, 2008 9:23 pm Post subject: |
|
|
| figured it out. i didn't even realize there was an INPUT command that would do it. |
|
| Back to top |
|
 |
|