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 pause a script and resume on pressing enter?

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



Joined: 20 Dec 2005
Posts: 61

PostPosted: Tue Sep 16, 2008 2:32 pm    Post subject: how do i pause a script and resume on pressing enter? Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Tue Sep 16, 2008 3:02 pm    Post subject: Reply with quote

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! Sad
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
dwaynek



Joined: 20 Dec 2005
Posts: 61

PostPosted: Tue Sep 16, 2008 3:59 pm    Post subject: Reply with quote

haha right you are! wrong click of the mouse!
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Tue Sep 16, 2008 6:42 pm    Post subject: Reply with quote

Its okay.. but did I answer your query right?.. Thinking it again..

Code:
Enter::Pause


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


Smile
Back to top
View user's profile Send private message Send e-mail
dwaynek



Joined: 20 Dec 2005
Posts: 61

PostPosted: Mon Dec 29, 2008 9:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
dwaynek



Joined: 20 Dec 2005
Posts: 61

PostPosted: Mon Dec 29, 2008 9:23 pm    Post subject: Reply with quote

figured it out. i didn't even realize there was an INPUT command that would do it.
Back to top
View user's profile Send private message
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