i tried going through the winuser.h, but cant find the defs for regular letters on the keyboard. is there something im missing?
Printable View
i tried going through the winuser.h, but cant find the defs for regular letters on the keyboard. is there something im missing?
They are in there as normal ascii, but without any alternatives - for example, "A" and "a" are both 65. "0" and "!" are both 48 (0x30). etc...
If you have the MSDN installed, then look here for a full list:
ms-help://MS.MSDNQTR.2004JAN.1033/winui/winui/windowsuserinterface/userinput/VirtualKeyCodes.htm
Wouldn't it be '0' and ')', not '0' and '!'?
Indeed it would. Oops!
Actually it's dependent on the keyboard layout. On the typical German QWERTZ keyboard, it's '0' and '=' (and '}' too).
The ToAscii function converts a vkey code to an ASCII code, but it also requires the complete keyboard state as input (for shift and other alternate-character functions).
thank you all very much :)