WaitKeyDown + Wildcard?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
TreeFish

WaitKeyDown + Wildcard?

Post by TreeFish » Mon Feb 02, 2004 1:05 am

Hi all

I am trying to make a script that will press the control key until another key (any key) is pressed. Can the "WaitKeyDown>" command be used with wild cards? I've tried simply using an asterix but that doesn't seem to work.

Here is my script so far:
Press LCTRL
WaitKeyDown>*
Release LCTRL

Any idea's/suggestions/solutions?

Thanks!

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Feb 03, 2004 9:56 am

Hi,

Unfortunately WaitKeyDown does not accept a wildcard. Nice idea though and I will add it to the wish list.

I can't think of a way at present to wait for any key - unless you can find an ActiveX object that implements some sort of Inkey function - then you could use it with VBscript.

That's also an obvious wish list candidate - Inkey. Will add it.
MJT Net Support
[email protected]

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