Last active
January 23, 2017 18:45
-
-
Save phizaz/8b2deab3da0aa39e5a67d1c2275e1fea to your computer and use it in GitHub Desktop.
Autohotkey: Swapping ctrl and alt but keeping the physical "alt+tab" functionality
This file contains hidden or 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
; 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