The KeyDown event looks like it makes a lot more sense than the KeyUp event.
I had a little play with Paul's code to add CaseElse's that would reveal the integer values of other keys which may be pressed. I note that combinations can give different results depending on the order of the key presses (eg Ctrl then Alt returns a different result to Alt then Ctrl).
The first Case Else should be amended as follows to reveal the integer value of the modifiers
Case Else: strMask = Shift & "+"
You can then add a CaseElse to the second select
Case Else: StrKey = KeyCode
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|