How does WaitKeyDown> Work?

Hints, tips and tricks for newbies

Moderators: JRL, Dorian (MJT support)

Post Reply
Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

How does WaitKeyDown> Work?

Post by Me_again » Thu Apr 13, 2006 2:05 pm

I'm trying to set up a very simple macro for someone to scan a sequence of webpages in different domains. I thought I could use WaitKeyDown to control the flow. According to the Help "WaitKeyDown>VK101 - waits for virtual key code 101 (Numpad 5) to be pressed" so I thought something like this test should work but it just passes from one message to the next without waiting. What am I doing wrong?

MessageModal>Start
WaitKeyDown>VK101
MessageModal>One
WaitKeyDown>VK101
MessageModal>Two
WaitKeyDown>VK101
MessageModal>Three
WaitKeyDown>VK101
MessageModal>That's all folks

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Apr 13, 2006 5:01 pm

WKD>VK101 works fine for me. In fact the numlock has to be on or I get nothing when I press "5". But in any case it definitely waits between messages until the key is pressed.

Maybe try a simpler key. VK32 is the space bar. or try a character key.

WaitKeyDown>a

Sorry I don't have a better answer.

Dick

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Thu Apr 13, 2006 5:23 pm

Thanks for the confirmation. It seems to be something strange with this particular PC, I tried it on 2 other PC's and it works perfectly. VK32 works OK on this one, but not VK101, very odd :?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts