Skip to content

Instantly share code, notes, and snippets.

@BGMcoder
Created June 5, 2015 18:33
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save BGMcoder/413a5bbdab8018874cd5 to your computer and use it in GitHub Desktop.
Volume Control hotkeys via ahk
;control your system volume via hotkeys
;# is the win key
;^ is the control key
;sound controls
#[::setVolume("-5") ;lower volume by 5%
#]::setVolume("+5") ;raise volume by 5%
^#[::setVolume("10") ;set volume to minimum
^#]::setVolume("80") ;set volume to loud
SetVolume(whatvolume){
soundset, %whatvolume%, SPEAKERS
soundplay, *-1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment