I have a non standard keyboard that is used to input commands to a program. As it is non standard it costs a lot more than most. The only thing stopping me from using a standard keyboard is that I do not know what keystrokes to use. I have discovered some keys buy simply connecting it to an XP machine and looking to see what happens when the key is pressed but some of the keys are not so easy. Is there any way of getting a PC to tell me exactly what key or key combination is being pressed ?
Yes .. but need more information I think. Do you mean for things such as ß, ä, á, ý, Ü, etc, etc? You can use $C values with Alt if you know them (Hold down alt and type 0220 on numpad for Ü). Do a search on ascii chars to find the right code(s) for what you are after. If it's only a small selection of chars you need, let me know exactly what ones and I'll figure them out for you.
Hmmm trouble is I need to work backwards. I dont know what values I need. The keyboard is a Preh Commander that has been pre-mapped to drive a software package. When this keyboard is used I can access every function of the program but if I replce it with a qwerty keyboard I cannot find all the buttons to perform my usual tasks.
Is it USB or PS/2? If it's PS/2 then you may be able to find software to read the scan codes directly from I/O ports 60h and 64h which are used to interface to a PS/2 keyboard. If it is USB, you can try using this or this to capture the USB traffic and try to figure it out from that.
I might be out of luck, its PS/2. This looks like it might be a bit too involved for me. Time to find another plan.