LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Are eventData values the same for all keyboard setups ?

Is the CVI EVENT_KEYPRESS eventData arguements affected in any way by keyboard or nationality settings ?.
E.G. within the UK the key combination Clt-A results with eventData1 having the value 262209. Can I rely on this worldwide?.
0 Kudos
Message 1 of 2
(2,807 Views)
Ken -

Thanks for writing in to the Developer Exchange discussion forum. I have been researching your question concerning the eventData1 values that are returned on a user-interface event, specifically, an EVENT_KEYPRESS. I have attempted to develop this under a couple of different Windows systems with different OS languages, and I have yet to find a difference. As you can imagine, it is not possible for me to reproduce this on a variety of operating systems in several different languages, but I can tell you that my initial tests have not revealed any differences.

I believe that these values should, in theory, be universal as long as you are constrained on the operating system (like you only develop for Windows). The majority of the information that is re
turned during a user-generated event, such as a KEYPRESS, is sent from the Windows messaging queue. I believe that the eventData is included in this group of values. Therefore, under the assumption that it would probably be a very bad thing for Windows, or any other operating system, to change these types of values being returned even across language barriers, I would assume that you should be in the clear.

Thanks again for taking advantage of the Developer Exchange forums. And, as always, thanks for your continued support of National Instruments!!!

Best Regards,

Greg Wempe
Applications Engineer
Message 2 of 2
(2,807 Views)