Skip to content

Instantly share code, notes, and snippets.

@greyblue9
Created August 10, 2014 01:41
Show Gist options
  • Save greyblue9/f31983980fb170549dbb to your computer and use it in GitHub Desktop.
Save greyblue9/f31983980fb170549dbb to your computer and use it in GitHub Desktop.
;-----------------------------------------
; Mac keyboard to Windows Key Mappings
;=========================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT
; # = WIN
;
; Debug action snippet: MsgBox You pressed Control-A while Notepad is active.
#InstallKeybdHook
#SingleInstance force
SetTitleMatchMode 2
SendMode Input
; --------------------------------------------------------------
; media/function keys all mapped to the right option key
; --------------------------------------------------------------
F7::SendInput {Media_Prev}
F8::SendInput {Media_Play_Pause}
F9::SendInput {Media_Next}
F10::SendInput {Volume_Mute}
F11::SendInput {Volume_Down}
F12::SendInput {Volume_Up}
; swap left command/windows key with left alt
LWin::LCtrl
LCtrl::LWin ; add a semicolon in front of this line if you want to disable the windows key
; Eject Key
F20::SendInput {Insert}
; F13-15, standard windows mapping
F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
F15::SendInput {Pause}
;F16-19 custom app launchers, see http://www.autohotkey.com/docs/Tutorial.htm for usage info
F16::Run http://twitter.com
F17::Run http://tumblr.com
F18::Run http://www.reddit.com
F19::Run https://facebook.com
; --------------------------------------------------------------
; OS X system shortcuts
; --------------------------------------------------------------
; Make Ctrl + S work with cmd (windows) key
#s::^s
; Selecting
#a::^a
; Copying
#c::^c
; Pasting
#v::^v
; Cutting
#x::^x
; Opening
#o::^o
; Finding
#f::Send ^f
; Undo
#z::^z
; Redo
#y::^y
; New tab
#t::^t
; close tab
#w::^w
; minimize windows
#m::WinMinimize,a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment