AutoHotkey Community

It is currently May 26th, 2012, 11:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 16th, 2009, 9:56 pm 
Offline

Joined: August 19th, 2009, 3:06 pm
Posts: 13
In the code below (sends a few different items to a Bloomberg screen), I'd like to replace the Sleep commands with something that will wait for the spacebar to be pressed before continuing. I know a Msgbox with just an "okay" works, but then that dialog box blocks the screen I'm looking at. I also tried using a separate hotkey for pausing, but that seemed inelegant.

Code:
^!z::
SetKeyDelay, 10
Send SPX {F10} IGPO5 {Enter}
Sleep,2500
Send IWM {F8} IGPO5 {Enter}
Sleep,2500
Send RJA {F8} IGPO5 {Enter}
Sleep,2500
Send MSFT {F8} IGPO5 {Enter}
Sleep,2500
Send USO {F8} IGPO5 {Enter}

Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 10:00 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
KeyWait


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 10:04 pm 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6067
Location: San Diego, California
Look at the first example for this command
http://www.autohotkey.com/docs/commands/Input.htm

Instead of all the other keys listed, you could {Space}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 10:23 pm 
Offline

Joined: August 19th, 2009, 3:06 pm
Posts: 13
Excellent... I don't know how I missed that.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2009, 10:31 pm 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6067
Location: San Diego, California
FYI sometimes I just look at the catalog

http://www.autohotkey.com/docs/commands
In the helpfile it is under the Contents tab about 12th on the list.
Alphabetical List of Command.

I think of the old TV series "Mission: Impossible"
The leader looks at the list of experts available and chooses the ones that have the skills needed.

Also, under the "input" comamnd is a list called "related"
KeyWait, Hotstrings, InputBox, #InstallKeybdHook, Threads, if var in/contains MatchList


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Cerberus, Google Feedfetcher, Maestr0, rbrtryn, Tipsy3000, XstatyK and 68 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