I'm trying to trap these key strokes - VB Books online tells me that vbKeyReturn has a value of 13 and vbKeySepartor 108. But all I can get is 13. any Ideas
Printable View
I'm trying to trap these key strokes - VB Books online tells me that vbKeyReturn has a value of 13 and vbKeySepartor 108. But all I can get is 13. any Ideas
What event do you use to catch it? I bet it's Keypress, you should use Keydown
The ANSI communications standard says that ASCII value 13 (=0Dh) represents the carriage return command.
It is commonly used in combination with Line Feed (ASCII 10 or 0Ah), giving us a common CR+LF sequence (=0D0Ah).
Mad Compie is correct. If you open your file in a Binary Editor, you'll see both 13 and 10.
I thought we were talking about key codes, not ascii codes, well uh i tried myself and getasynkeystate seems not to recognize 108 i've tried all keys :(
True, VK_SEPARATOR should normally by the Enter key in the numerical key zone, but I could not simulate this code anyway.
might be it's obsolete and only exists for backward compability or something :rolleyes:
Yes, or for some other type of keyboard than we are using...