The Fastest Way to Invoice Your Clients

Mac envy: How to use an Apple keyboard with Windows

by Ben Vinegar - April 3/2008

Photo of a Mac keyboard on a PCWith 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.

The fastest way to track your time and invoice your clients is with FreshBooks, the leader in online invoicing. Sign up for your free account!

22 Comments (add comment)

Apr 3/08
12:33 pm
Dave says:

Funny enough, I prefer using a PC keyboard with my Apple.

Apr 3/08
12:50 pm
Joe says:

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-

Apr 3/08
1:22 pm
Ian says:

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.

Apr 3/08
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. :)

Apr 3/08
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.

Apr 4/08
2:36 am
Kerry says:

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?)

Apr 26/08
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 [...]

Sep 28/08
11:41 am
jonathon Knight says:

this is great info. Doe’s anyone know if the new Apple bluetooth keyboard will work with Windows XP? thanks

Sep 29/08
12:28 pm
nem75 says:

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.)

Oct 6/08
8:02 am

[...] Mac envy: How to use an Apple keyboard with Windows [...]

Oct 8/08
2:00 pm
Kendo says:

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.

Oct 22/08
11:45 am
jProxy says:

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?

Oct 29/08
12:04 am
big bobby bobka says:

yup, I got the same problem as jproxy.

Oct 30/08
3:18 pm
JP says:

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!

Oct 30/08
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.

Dec 23/08
11:24 pm
Burritoilkethesun says:

Aaron Adams: dude it just sounds like you’ve become old and uninspired. Thanks for giving me another reason not to buy Apple products.

Dec 25/08
9:36 pm
Liz says:

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.

Jan 5/09
11:10 am
Josiah says:

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

Feb 4/09
1:41 pm
prochobo says:

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/

May 13/09
7:29 am
targat says:

It works follows in windows -Alt+Capslock+F14 and you wil get Alt+Print Sreen

Jun 16/09
5:20 am
alt-tab frustration says:

see here:
http://www.autohotkey.com/docs/misc/Remap.htm#AltTab

if your alt tab doesn’t work on this!

Jun 18/09
1:25 pm
Ctrl+Alt+Delete says:

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.


Leave a Comment

*
* (not published)

*
* required

What is FreshBooks?

FreshBooks is an online invoicing and time tracking service that helps professionals in over 100 countries save time, get paid faster, look professional and focus on what they love to do — their work. Read our customer survey results — 99% recommend FreshBooks. FreshBooks users are served by a tight-knit team of 31 dedicated individuals based in Toronto, Canada who've been at this since 2003.
Learn More or Sign Up For FREE

Get Blog Posts