Skip to content

Instantly share code, notes, and snippets.

@stefansundin
Created June 8, 2017 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefansundin/6cd39cc1c670061fef627e775de417b7 to your computer and use it in GitHub Desktop.
Save stefansundin/6cd39cc1c670061fef627e775de417b7 to your computer and use it in GitHub Desktop.
Press Ctrl+Alt+A to toggle AltDrag. Compile with AutoHotKey: https://www.autohotkey.com/
; Press Ctrl+Alt+A to toggle AltDrag
; 0x111 = WM_COMMAND
; 0x8000+1 = SWM_TOGGLE https://github.com/stefansundin/altdrag/blob/8547fc8ea13829af712586558851b9ed50ae23e8/altdrag.c#L27
DetectHiddenWindows, on
^!a::
SendMessage, 0x111, 0x8000+1, 0,, ahk_class AltDrag
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment