Macro Scheduler 15

HoldKey

HoldKey>key,milliseconds,special_key[,do_repeat]

 

Holds the specified key for the specific milliseconds duration. Key can be either a character or a virtual key code in the format VKn where n is the decimal VK key code. See http://www.mjtnet.com/vkcodes.htm

 

If the key is a special key set special_key to 1.

 

By default HoldKey causes the key to repeat which mimics what keyboards do at the hardware level when you hold down a key. When a key is held down on the keyboard what actually happens internally is that multiple key down events are triggered followed by one final key up event.  If instead you need to issue a single key down event, then a delay, followed by one key up event, set do_repeat to zero.

 

Examples:

 

//Hold the H key for half a second ...

HoldKey>H,500,0

 

//Hold num pad 5 for one second

HoldKey>VK101,1000,1