Skip to content

Instantly share code, notes, and snippets.

@phizaz
Last active January 23, 2017 18:45
Show Gist options
  • Save phizaz/8b2deab3da0aa39e5a67d1c2275e1fea to your computer and use it in GitHub Desktop.
Save phizaz/8b2deab3da0aa39e5a67d1c2275e1fea to your computer and use it in GitHub Desktop.
Autohotkey: Swapping ctrl and alt but keeping the physical "alt+tab" functionality
; escaper (this is used to reset all the keys)
~lalt up::
{
send {ctrl up}
send {lctrl up}
send {alt up}
send {lalt up}
return
}
; alt + tab
*Tab::
{
if(GetKeyState("LAlt", "P")){
send {LCtrl Up}{Alt Down}{Tab}
KeyWait, Tab
} else {
send {Tab}
}
return
}
LAlt::LCtrl
LCtrl::LAlt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment