Skip to content

Instantly share code, notes, and snippets.

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 gustavomdsantos/54586cf5d62148ca198e3f8b163e8ae8 to your computer and use it in GitHub Desktop.
Save gustavomdsantos/54586cf5d62148ca198e3f8b163e8ae8 to your computer and use it in GitHub Desktop.
AutoHotKey script that locks Ctrl+Alt+{Down, Left, Right} keys for avoid rotating Windows screen (90º, 180º, 360º) accidentally, instead of switching virtual desktops (on Windows 10).
; AutoHotKey Beginner Tutorial: https://www.autohotkey.com/docs/Tutorial.htm
; AutoHotKey Key list: https://autohotkey.com/docs/KeyList.htm
; AutoHotKey Hotkeys: https://www.autohotkey.com/docs/Hotkeys.htm
notificationMessage := "Rotação de tela por atalho de teclado bloqueada."
notificationIcon := 16 + 3 ; No notification sound (16) + Error icon (3)
^!Down::
^!Left::
^!Right::
TrayTip, Ctrl+Alt+Seta, %notificationMessage%, , %notificationIcon%
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment