Skip to content

Instantly share code, notes, and snippets.

@unphased
Last active January 21, 2016 03:19
Show Gist options
  • Save unphased/dce7ba8beffb6fc1d2fe to your computer and use it in GitHub Desktop.
Save unphased/dce7ba8beffb6fc1d2fe to your computer and use it in GitHub Desktop.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one ahk file simultaneously and each will get its own tray icon.
Menu, MyMenu, Add, 4K @30, MenuHandler4K30
Menu, MyMenu, Add, 4K @60, MenuHandler4K
Menu, MyMenu, Add
Menu, MyMenu, Add, FHD @60, MenuHandlerFHD
Menu, MyMenu, Add, FHD @120, MenuHandlerFHD120
return
MenuHandler4K30:
Run, nircmd.exe setdisplay 3840 2160 32 30
return
MenuHandler4K:
Run, nircmd.exe setdisplay 3840 2160 32 60
return
MenuHandlerFHD120:
Run, nircmd.exe setdisplay 1920 1080 32 120
return
MenuHandlerFHD:
Run, nircmd.exe setdisplay 1920 1080 32 60
return
#z::Menu, MyMenu, Show
^!+r::
Reload
return
#IfWinActive ahk_class Chrome_WidgetWin_1
F2::^PgUp
F3::^PgDn
+F2::^-
+F3::^+
#IfWinActive ahk_class MozillaWindowClass
F2::^PgUp
F3::^PgDn
+F2::^-
+F3::^+
#IfWinActive
+F3::
send #{=}
return
+F2::
send #{NumpadSub}
return
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment