Need Help Remapping Two USB Keyboard Keys on a Mac

Joined
Mar 17, 2011
Messages
1
Reaction score
0
Points
1
Hello,

I'm actually writing a program for a client (it's supposed to be idiot proof and user friendly) to change what two keys on the keyboard do.
The keys are in order fn, command, option, and a \| symbol key.

Generic programs you find on Google will not work for this because they do not recognize the command key alone (only command + a letter or digit) and probably won't recognize the \| key, I'll have to see when I get the keyboard. So, I need to do the job myself.

I'm hoping to go into the keyboard layout file and switch what the two keys do. Then, I'm hoping to write a script that will do this for other people with the keyboards that will be idiot-proof.

However, I have -no idea- how to originally do this (edit the keyboard layout file, it seems to be hidden on 10.5+) or how to find the key code for the strange \| key that other keyboards do not have.

If that's not possible, how else would I go about it? Writing a new keyboard driver is not ideal and is over my head at the moment, but I'm always willing to learn.

I'm new to this. Can you give me any advice on where to get started?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top