AutoHotkey Community

It is currently May 26th, 2012, 12:55 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: September 16th, 2008, 3:32 pm 
Offline

Joined: December 20th, 2005, 7:14 pm
Posts: 61
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 ]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2008, 4:02 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2008, 4:59 pm 
Offline

Joined: December 20th, 2005, 7:14 pm
Posts: 61
haha right you are! wrong click of the mouse!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2008, 7:42 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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


:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 29th, 2008, 10:13 pm 
Offline

Joined: December 20th, 2005, 7:14 pm
Posts: 61
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 29th, 2008, 10:23 pm 
Offline

Joined: December 20th, 2005, 7:14 pm
Posts: 61
figured it out. i didn't even realize there was an INPUT command that would do it.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Cerberus, Exabot [Bot], Maestr0, poserpro and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group