Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Using macOS keyboard shortcuts (with an Apple keyboard) in Windows
; Emulate macOS behaviour w/ a Mac keyboard on Windows
; 2017 ckunte
;
; credits to @mattheath and @stroebjo the very many shortcuts
;
; NOTES
;
; ! = ALT
; ^ = CTRL
; + = SHIFT
; # = WIN
SetWorkingDir %A_ScriptDir%
#SingleInstance force
#KeyHistory 0
#NoEnv
; -------------------------------------------------------
; media/functions keys all mapped to the right option key
; -------------------------------------------------------
RAlt & F7::SendInput {Media_Prev}
RAlt & F8::SendInput {Media_Play_Pause}
RAlt & F9::SendInput {Media_Next}
F10::SendInput {Volume_Mute}
F11::SendInput {Volume_Down}
F12::SendInput {Volume_Up}
; F13-15, standard windows mapping (these keys do not exist on wireless mac keyboard)
;F13::SendInput {PrintScreen}
;F14::SendInput {ScrollLock}
;F15::SendInput {Pause}
; -------------------------------------------------------
; OS X system shortcuts
; -------------------------------------------------------
#s::^s ; Save
#a::^a ; Selection
#c::^c ; Copy
#v::^v ; Paste
#x::^x ; Cut
#o::^o ; Open
#n::^n ; New
#f::SendInput ^f ; Find
#z::^z ; Undo
#y::^y ; Redo
#t::^t ; New tab
#w::^w ; Close tab
#p::^p ; Print
#q::SendInput !{F4} ; Close window (Cmd + q to Alt + F4)
Lwin & Tab::AltTab ; Alt Tab
#m::WinMinimize,a ; Minimize window
; navigation
#Left::SendInput {Home}
#Right::SendInput {End}
#+Left::SendInput +{Home}
#+Right::SendInput +{End}
^Up::SendInput {PgUp}
^Down::SendInput {PgDn}
^+Up::SendInput +{PgUp}
^+Down::SendInput +{PgDn}
; text expander
::fyi::For your kind info.
::sig::
(
--
Chyetanya Kunte
Title
Role
Company
Contact info
)
::tx::Thank you
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment