mac - Alt and Windows key swap for MacBook

17
2013-08
  • Jamie Hutber

    I want to be able to swap my cmd, or what would be my Windows' key with my alt key, using AutoHotKey, thus making it more like a real Windows machine.

    I am running Windows 7 64-bit.

  • Answers
  • Young

    Use SharpKeys; this works on my early 2011 Macbook Pro running Windows 7 x64. The problem is that when you connect an external keyboard to your Macbook, the keys will be screwed up the other way around; it seems that Apple has wired the keyboard that way in hardware.

  • bames53

    AutoHotKey can do that. There are lots of examples online. You probably need the keynames RAlt, LAlt, LWin, and RWin.

    I use

    LCtrl::LAlt
    LAlt::LCtrl
    Rctrl::RAlt
    RAlt::RCtrl
    

    on Windows to put the keyboard shortcut key in the 'right' place as a Mac user.


  • Related Question

    windows 7 - MacBook Pro Keyboard - How to Swap / Remap Keys?
  • Jon Erickson

    I know this may be asked before in a different manner, but I still haven't really seen a solid answer. I'm hoping that providing these 2 specific needs will make it more clear.

    I specifically want 2 behaviors that will make my transition from a long time PC user to being able to use a MacBook Pro.

    Background:

    • I am a windows user that just got my first mac ever (in my life) this past weekend.
    • I am dual booting the MBP with Snow Leopard and Windows 7 x64

    What I want to do (in both Windows 7 and Snow Leopard):

    • Swap the fn and control keys (not physically)
    • Be able to tap the eject key for a forward delete, but keep the ability of holding down the eject key to actually eject the disc.

    Are these possible, if so what is the best way (software?) of accomplishing this in both Windows 7 and Snow Leopard?


  • Related Answers
  • 8088

    On OS X: DoubleCommand

    enter image description here

    On Windows: SharpKeys

    enter image description here

    For anything more extensive, you'll want AutoHotkey (Windows) or IronAHK (AutoHotkey rewrite that works with Mono for cross-platform compatibility - Linux, Mac, etc).

  • porneL

    On the Snow Leopard side you can swap Control and Fn with KeyRemap4MacBook.

    If you're dual-booting, a good idea is to swap Command and Control in OS X's preferences. You'll get physically same keyboard shortcuts on both.

  • Juri

    Just as a sidenote you may also consider taking a look at the normal OS X system preferences under Keyboard there is a button on the lower-right named "Modifier keys" where you can define which actions should be taken by the modifier keys (caps-lock, ctrl, cmd,...). Could also be enough in some situation without installing 3rd-party software.

  • Cawas

    As John T pointed out, AutoHotKey does everything on Windows, and that's it.

    For Mac, I guess IronAHK should be good too. And there's another option that, while I could never really use, seems to do what you need. Although it's very very technical, it's highly customizable. I'll just quote the website:

    Ukelele is a Unicode Keyboard Layout Editor for Mac OS X

    Ukelele aims to simplify keyboard layout editing by providing a graphical interface to .keylayout files, where the desired characters can simply be dragged onto keys as needed. (The Character Palette, available in the Input menu if it has been enabled in System Preferences, is a great place to find the characters.)

    In addition to simple assignment of single character codes to keys, Ukelele can assign multiple-character strings and can create "dead keys", where a keystroke sets a new state that modifies the output of the following keystroke.

    Hope it can help you where it couldn't for me back when I found it. ;)

  • slhck

    There is keyboard maestro that does this