Mac envy: How to use an Apple keyboard with Windows
With Macs now controlling 14% of the US market share (up from 9% in 2006), it’s clear that the world is quickly going Mac.
This is especially evident here at FreshBooks. When I joined last year, we were a strictly PC/Windows shop. Since then, we’ve added 6 iMacs to the grid — and more are on the way.
Resistance is futile
I, for one, welcome our new Mac overlords. To help kick-start the indoctrination process, I’ve begun using an Apple keyboard with my Windows box here at work. Sure, the buttons don’t match up perfectly (where’s the print screen button?), but with a few easy steps, you can re-map your Windows keys such that you’ll hardly notice.
Introducing AutoHotKey
AutoHotKey is freeware software for Windows XP that lets you create easy-to-write scripts that define alternate key mappings in Windows. You can do the same by hacking the Windows registry yourself - but that’s just plain silly.
The script
After you’ve installed AutoHotKey, download this script and run it (either by double-clicking or right-click -> “Run Script”). This will load a set of pre-defined rules that will make your Apple keyboard operate like a Windows one — but way sexier.
Here’s the rules I’m using:
; Swap Windows (Command) and Alt keys ; These button locations are reversed on Mac keyboardsLAlt::LWin LWin::LAlt ; Map F13 to Print screen ; Mac keyboards don't have a print-screen button! F13::PrintScreen
To have this script run every time Windows boots up, save it in your Startup folder (Start -> All Applications -> Startup).
That’s it! Happy typing.










12:33 pm
Funny enough, I prefer using a PC keyboard with my Apple.
12:50 pm
Oh wow - my wife is going to love this. She uses a Mac at work - and a PC at home - and she has equal likes and dislikes about both.
We keep this approach at our IT services company as well - we like to consider ourselves platform agnostic
However, my wife prefers her Mac keyboard for it’s compact size and feel - but hates having to rethink the keys when she comes home - this will help big time. Thanks!
Joe-
1:22 pm
I’m pretty much an all windows user. However, I’ve done programming and web hosting in linux in the past and I like linux. I’ve never had an opportunity to really work with a mac since i refuse to buy a mac. They may look really nice and the operating system might be really nice, but frankly I dont understand how people get suckered into buying hardware with limited/no upgradeable parts. I still dont understand why people would buy an iphone, no matter how cool the interface is, with no memory expansion slot and no user replaceable battery.
If someone gave me a mac to work with, I would gladly take the chance to become more familiar with the mac OS. But i doubt I would ever pay for one.
1:36 pm
Dave: have you tried the new keyboard? It’s amazing.
Ian: you get used to it.
I used to be a complete tweaker. Building my own machines, reading HardOCP et al daily, slipstreaming RAID drivers and hotfixes into my XP CD, overclocking, soft mods, constant little upgrades, hated Macs… the whole nine yards really.
Now I’ve never seen the insides of my machines. And when I say “you get used to it,” I should really say, you wind up liking it a lot better this way.
10:04 pm
MmmMmm… pretty soft Mac keyboards. Still a designer working on PCs. Maybe some day I’ll run both, but till then, having a swanky keyboard is a bonus. Though it doesn’t have to be a Mac keyboard at all.
2:36 am
I absolutely LOVE using my little Apple bluetooth keyboard whenever I have a chance. I keep it in my laptop bag in the mini-file-storage, it is thin and sleek, portable and delicious.
When I pace back and forth in front of multple monitors, typing furiously, I feel a bit like Jonathan Pryce, evil technology baron, in whatever that totally forgettable Bond flick was (Two Days After Yesterday This Movie Will Still Be Awful?)
10:53 am
[...] use AutoHotKey, Eric F. Savage shares an alternate way to get extended functionality. Ben Vinegar also has an article along the same [...]
11:41 am
this is great info. Doe’s anyone know if the new Apple bluetooth keyboard will work with Windows XP? thanks
12:28 pm
Your script is missing
RAlt::RWin
RWin::RAlt
The keys are swapped on the right side of the space bar, too.
Also mapping the Insert key might come in handy:
F14:Insert
(Or somesuch.)
8:02 am
[...] Mac envy: How to use an Apple keyboard with Windows [...]
2:00 pm
I use a MAC Bluetooth keyboard with Vista Ultimate on my HP laptop …. LOVE’N it….I’m a MS man all the way but Apple makes some cool ass hardware. I use KeyTweak (it’s Free just do a search on google for it) to rectify the button problems.
11:45 am
Hi — this is great. Thanks for posting!
I am experiencing a case where alt-tab leaves the little window that displays the various app-choices.
I can hit escape to make it go away once I’ve chosen a window to focus, but it seems strange. Anyone else have that?
12:04 am
yup, I got the same problem as jproxy.
3:18 pm
The “S” key on my Dell Inspiron laptop stopped working after I used some compressed air to clean the funk out of it. I just picked up a new Mac keyboard even though the lady at the Mac store said it wouldn’t work on my XP rig. Glad to see she was totally wrong!
Thanks for the link to AutoHotKeys!
3:35 pm
Hi jProxy, Bobby - it would appear I’ve had the same problem all along, but never really noticed it. Once I start clicking around in the window I’ve just switched to, it goes away.
11:24 pm
Aaron Adams: dude it just sounds like you’ve become old and uninspired. Thanks for giving me another reason not to buy Apple products.
9:36 pm
As a long time freshbooks users, I just should have guessed that after getting a new mac keyboard for xmas, you guys would have the info to get my print screen button back.
11:10 am
This was just what I needed, thanks for the script! It worked out great but for one thing… The alt-tab is “sticky” and doesn’t work properly when you release.
After looking at their support docs, I found the answer. In case anyone else runs into this problem, add this to your script:
*Tab::Send {Blind}{Tab}
I found it here:
http://www.autohotkey.com/docs/misc/Remap.htm#AltTab
1:41 pm
Thanks for the info! I just got one of these and I was frustrated with the Windows compatibility. I found some more tips on Autohotkey here:
http://www.isyougeekedup.com/apples-awesome-short-stroke-aluminum-keyboard-review/
7:29 am
It works follows in windows -Alt+Capslock+F14 and you wil get Alt+Print Sreen
5:20 am
see here:
http://www.autohotkey.com/docs/misc/Remap.htm#AltTab
if your alt tab doesn’t work on this!
1:25 pm
Does anyone else’s ctrl+alt+delete not work, for some reason i have to press option(alt) which should be set as a the Win key. However, alt tab with what i remapped as alt (command) does work, i cant figure out whats wrong.