- Version 10.021 23/02/2008
- Added Windows Key to KEY_DOWN OnEVent ( 8 )
Code: Select all
// key code for the multiply key * on the numeric keypad
// VK_MULTIPLY (106)
// Multiply key
//numeric keypad multiply key * and modifier: Windows Key pressed simultaneously
OnEvent>KEY_DOWN,VK106,8,KeyPress_multiply_with_windows_key
//numeric keypad multiply key * and no modifier
OnEvent>KEY_DOWN,VK106,0,KeyPress_multiply_no_modifier
Let>Exit_Flag=0
Label>start
Wait>1
If>Exit_Flag=1,end
Goto>start
SRT>KeyPress_multiply_with_windows_key
MDL>multiply key was pressed with the Windows Key
END>KeyPress_multiply_with_windows_key
SRT>KeyPress_multiply_no_modifier
Let>Exit_Flag=1
MDL>multiply key was pressed alone - exit flag set to 1
END>KeyPress_multiply_no_modifier
Label>end
MDL>Exiting macro...
2 - Pressing the numeric keypad * key all by itself does get recognized properly... however, why do we have to hold it down so long? If I just tap the key lightly, I hear a beep so I know the machine "saw" the keypress but OnEvent KEY_PRESS won't fire unless I hold the key down longer. When I assign a "Hot Key" to a macro, those are sensed immediately with the lightest of taps. Why can't OnEvent KEY_PRESS be as responsive?
Thanks for adding this by the way... nice to have the Windows Key as a modifier.