View Single Post
 
Old 11-24-2015, 04:36 PM
Guessed's Avatar
Guessed Guessed is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote