Skip to content

Instantly share code, notes, and snippets.

@efvincent
Created February 16, 2020 07:44
Show Gist options
  • Select an option

  • Save efvincent/4190f09f6ced6df038dd4c80d5780d71 to your computer and use it in GitHub Desktop.

Select an option

Save efvincent/4190f09f6ced6df038dd4c80d5780d71 to your computer and use it in GitHub Desktop.
Remapping script for AutoHotKey - close window and alt-tab behavior
#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.
;
; This assumes the CTRL and ALT keys have been switched using registry mapping. KeyTweak does the job
; if you don't want to manually tweak the mappings in the registry yourself.
;
^q::WinClose, A ; Close the current Window using CTRL-Q like on the mac
Ctrl & Tab::AltTab ; CTRL-TAB triggers the alt tab window switching functions, like on the mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment