Skip to content

Instantly share code, notes, and snippets.

@spencerwooo
Last active December 11, 2018 11:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencerwooo/7b6dea78d910143f263d7256dd4bed43 to your computer and use it in GitHub Desktop.
Save spencerwooo/7b6dea78d910143f263d7256dd4bed43 to your computer and use it in GitHub Desktop.
My autohotkey
#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.
#q:: ; Windows + Q closes active window
WinGetTitle, Title, A
PostMessage, 0x112, 0xF060,,, %Title%
return
#t:: ; Windows + T open Terminus
Run "C:\Users\spenc\AppData\Local\terminus\Terminus.exe"
Return
;next song: win+]
#]:: ;the + means shift
Send {Media_Next}
return
;previous song: win+[
#[::
Send {Media_Prev}
return
;play/pause: win+\
#\::
Send {Media_Play_Pause}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment