Skip to content

Instantly share code, notes, and snippets.

@aschmelyun
Last active November 10, 2023 22:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aschmelyun/296ce38449aca705ead68ac76cdaa316 to your computer and use it in GitHub Desktop.
Save aschmelyun/296ce38449aca705ead68ac76cdaa316 to your computer and use it in GitHub Desktop.
AutoHotKey script for enabling alt-tab on a Windows system after switching the Alt and Ctrl keys
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
LCtrl & Tab:: AltTab
!Tab:: Send ^{Tab}
!+Tab:: Send ^+{Tab}
^Space:: Send ^{Esc}
^Left::
Send {Home}
Return
^Right::
Send {End}
Return
^+Left::
Send +{Home}
Return
^+Right::
Send +{End}
Return
^Up::
Send ^{Home}
Return
^Down::
Send ^{End}
Return
^+Up::
Send ^+{Home}
Return
^+Down::
Send ^+{End}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment