blog advertising is good for you


blog advertising is good for you
User login

Tips for Using Windows-Centric Keyboards in Mac OS X

ddasher@tpg.com.au asks:

Question

Hi there. I have just been given a belkin wireless optical desktop kit. It is great, bar the fact that is PC. Surprisingly most things work, but I was wondering if there was a way to remap certain keys, ie: swap the windows key and the alt key around, and get a few more of the extra media buttons working. I have a 400mhz G4 running OSX10.3.9.
cheers.

Answer

Many of the specialty hardware items in the world are for Windows-based machines, and keyboards are no exception. While I’m partial to Apple’s little white wonder, there’s a billion and one keyboards out there, some with two dozen keys apiece to do all kinds of wondrous things.

It is becoming increasingly more common as people come to the Mac for folks to want to use these devices on their Mac, so I’ll do a little refresher on how to accomplish some of these deeds and make the keyboards more Mac-like.

Moving Modifier Keys Around

You can remap the modifier keys however you like using the Keyboard control panel, as I discussed in my tip/rant Kill Caps Lock. Incidentally, you can also turn off keys from here, or make Caps Lock function as Control, if you’re from the olden-times. Actually, if you use Text Mate at all, it’s wonderful to put Control there because you can hit it much more easily with your pinky. The downside is that using TM on someone else’s computer will make your TEXT COME OUT A LITTLE ODD when you thought you were hitting a mACRO and weren’t. Smiling

Using the Media Keys

The media keys are not function keys. They’re a whole other key code and, as such, Mac OS X doesn’t have much use for them. For many keyboards, especially Logitech’s, the sound buttons work in Mac OS X just fine as Apple used the same key codes that other makers were using. Those little mail and web buttons, though, not a chance.

But there’s always hope. Get USB Overdrive and then you can map any of those keys to do anything you want to, including start programs or launch scripts. It’s not free, but it’s worth it if you’re going to live on a PC keyboard.

Automatically Convert

Mac Geekery user unixgeek came up with an article a while back called GUI Automation with AppleScript and the example was how to automate the exchange of modifier keys when you have a Mac or PC keyboard connected. It’s well-worth looking at if this is something you’ll be changing often.

Average rating
(1 vote)
About Adam Knight
Adam Knight's picture

Author Biography

Adam Knight is one of the founders of Mac Geekery and is a geek at heart. Programmer by day, hacker by night, his daily life revolves around the Macintosh platform, which he has been a user and programmer for since the early days of System 7 when his LCII replaced his Apple //c.

In-between tech jobs, he’s managed to learn the basics of any web hacker: PHP, MySQL, Perl, Apache, Linux, *BSD, and the intricacies of ./configure —prefix=~/bombshelter/. Today, codepoet is concentrating on blogging again, writing some software for the Mac by himself (including Notae) and for his company (such as Switchblade) and has a few other toys coming out soon.

Bug him over AIM or email [link fixed].

What about the contextual menu on the right side of Windows keyboards? Can I remap it to another Alt key?, so I can remap both Alts to Commands and have full shortcut functionality on both sides.What about the contextual menu on the right side of Windows keyboards? Can I remap it to another Alt key?, so I can remap both Alts to Commands and have full shortcut functionality on both sides.

Adam Knight's picture

I’m not sure it actually has a purpose in Mac OS X, so the system won’t let you do it. I’m not sure if USB Overdrive will map modifier keys, but it’s worth a shot to see if you can get it to do anything.

As an alternative to USB Overdrive, I suggest ControllerMate. It’s amazingly customizable and under active development. Also cheaper. Highly recommended.

Post new comment
The content of this field is kept private and will not be shown publicly.
4 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.