
August 3rd, 2004, 07:26 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
readng keyboard scancodes (real ones not virtual)
Anyone know a way to get the real, set 2 scan codes for a keypress? I don't mean the microsoft "virtual code" (KeyCode) given by the KeyDown event, KeyAscii from the KeyPress event won't cut it either. I mean the actual string of make/break codes, "E0 12 E0 7C E0 F0 7C E0 F0 12" is Print Screen, the down cursor is "E0 72 E0 F0 72" for example.
I currently do it under DOS in C with test KB plugged into the mouseport, but wanted something that would work in win98+, since I can make the interfaces look lot better.
In case you wondering why I need this, I work in a keyboard factory, and we send some keyboards out preprogrammed. Some people want the F13 key to actually send a shift-F1 scancode or Linux folks like the ctrl and caps lock key reversed for example, and don't get me started on those esentric AS/400 users with thier custom keyboards hahah We need to verify that the programming took 100% before shipping.
I've searched high and low, but that darned MS keyboard driver stops me cold everytime.
Any ideas?
Dan
|