Created
January 16, 2018 22:32
-
-
Save sjaensch/bf0059478b2a03db5cb46c6496dd746e to your computer and use it in GitHub Desktop.
AutoHotkeys-Script to get Mac keyboard mappings on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;----------------------------------------- | |
; Mac keyboard to Windows Key Mappings | |
;========================================= | |
; significantly shortened and slightly modified version of | |
; https://github.com/stroebjo/autohotkey-windows-mac-keyboard/blob/master/MacKeyboard.ahk | |
; this file is supposed to be used together with a Windows registry change that switches LWin and LCtrl keys | |
; make that change with https://github.com/randyrants/sharpkeys | |
; -------------------------------------------------------------- | |
; 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 | |
; -------------------------------------------------------------- | |
RAlt & F7::SendInput {Media_Prev} | |
RAlt & F8::SendInput {Media_Play_Pause} | |
RAlt & F9::SendInput {Media_Next} | |
RAlt & F10::SendInput {Volume_Mute} | |
RAlt & F11::SendInput {Volume_Down} | |
RAlt & F12::SendInput {Volume_Up} | |
; Remap Windows + Tab to Alt + Tab. | |
LCtrl & Tab::AltTab | |
; Eject Key | |
;F20::SendInput {Insert} ; F20 doesn't show up on AHK anymore, see #3 | |
; 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 keyboard mappings for special chars | |
; -------------------------------------------------------------- | |
; Map Alt + L to @ | |
!l::SendInput {@} | |
; Map Alt + N to \ | |
+!7::SendInput {\} | |
; Map Alt + N to © | |
!g::SendInput {©} | |
; Map Alt + o to ø | |
!o::SendInput {ø} | |
; Map Alt + 5 to [ | |
!5::SendInput {[} | |
; Map Alt + 6 to ] | |
!6::SendInput {]} | |
; Map Alt + E to € | |
!e::SendInput {€} | |
; Map Alt + - to – | |
!-::SendInput {–} | |
; Map Alt + 8 to { | |
!8::SendInput {{} | |
; Map Alt + 9 to } | |
!9::SendInput {}} | |
; Map Alt + - to ± | |
!+::SendInput {±} | |
; Map Alt + R to ® | |
!r::SendInput {®} | |
; Map Alt + 7 to | | |
!7::SendInput {|} | |
; Map Alt + W to ∑ | |
!w::SendInput {∑} | |
; Map Alt + N to ~ | |
!n::SendInput {~} | |
; Map Alt + 3 to # | |
!3::SendInput {#} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment