Skip to content

Instantly share code, notes, and snippets.

@telekineticyeti
Created January 13, 2018 20:32
Show Gist options
  • Save telekineticyeti/25ce9e6435ea1724ff2576e3efe865f1 to your computer and use it in GitHub Desktop.
Save telekineticyeti/25ce9e6435ea1724ff2576e3efe865f1 to your computer and use it in GitHub Desktop.
AutoHotKey monitor rotation
#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.
MyPath = C:\Program Files (x86)\iRotate\iRotate.exe
#+!Up::
Run %MyPath% /2:rotate=0
Return
#+!Down::
Run %MyPath% /2:rotate=180
Return
#+!Left::
Run %MyPath% /2:rotate=270
Return
#+!Right::
Run %MyPath% /2:rotate=90
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment