i tried going through the winuser.h, but cant find the defs for regular letters on the keyboard. is there something im missing?
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 '!'?
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
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).
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
thank you all very much