Skip to content

Instantly share code, notes, and snippets.

@Jerph
Created August 1, 2019 21:52
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jerph/0b3635a1226bb27122f75c33306c268e to your computer and use it in GitHub Desktop.
Save Jerph/0b3635a1226bb27122f75c33306c268e to your computer and use it in GitHub Desktop.
AutoHotKey script to swap Option<->Command (Alt<->Win) in bootcamp
; Swap Option<->Command (Alt<->Win) in Boot Camp. Disable with Ctrl+F6. Only swaps left alt, use right alt for Ctrl+Alt+Del
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
#InstallKeybdHook
#SingleInstance force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; swap left command/windows key with left alt
LWin::
Send, {LAlt Down}
Keywait LWin
Send, {LAlt Up}
Return
LAlt::
Send, {LWin Down}
Keywait LAlt
Send, {LWin Up}
Return
^F6::Suspend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment