How to use an Apple keyboard with Windows

I have always envied the thin mac keyboards and I finally got me one.  Couple of customizations are very useful when using it with a PC.  Alt and Windows key are in the wrong order as you are used to on a windows keyboard.  So here is how i did it…

Introducing AutoHotKey

AutoHotKey is freeware software for Windows 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, you can use the below script and run it. This will load a set of pre-defined rules that will make your Apple keyboard operate like a Windows one.

Here’s the rules I’m using:

; Swap Windows (Command) and Alt keys
; These button locations are reversed on Mac keyboards
LAlt::LWin
LWin::LAlt

To have this script run every time Windows boots up, save it in your Startup folder (Start -> All Applications -> Startup).

Leave a Comment

You must be logged in to post a comment.