quote:
Originally posted by deAd
So according to your post, every character has a designated virtual key code and it's safe to compare the key code from the event to the one I want without discrepancies?
yes, since every character on your keyboard has a virtual key code (which is the same for everybody).
Note: but not every key code has a character assigned to it, eg: the CTRL key will only have a virtual key code (which is the same for everybody), while the "A" key has both a virtual key code as a character code.
PS: logically, it would have been very doubtfull Patchou would include a function like that which would highly depend on keyboard layout (making it virtually impossible to use such a function to catch keystrokes in scripts)
quote:
Originally posted by deAd
EDIT: MSDN says "Used for miscellaneous characters; it can vary by keyboard." and that it's the one I'm looking for on the US standard keyboard...this contradicts what you're saying, no?
No, that is either about Keyboard SCAN codes...
...Or either about the fact that a keyboard can contain special keys which can be defined by the manufacters. In those few cases, those keys are extremely off standard and should never be used to control a program made for public use. (eg: the
VK_OEM_x keys are examples of such keys. The OEM says it all, Original Equipment Manufacturer)
See my linked-to post in the first reply and also "
CookieRevised's reply to Virtual Key Code".