Skip to content

Instantly share code, notes, and snippets.

@jasondavis
Forked from BGMcoder/volume.ahk
Created February 19, 2018 18:30
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 jasondavis/f0c61c0c3569404896323a4ae06b8436 to your computer and use it in GitHub Desktop.
Save jasondavis/f0c61c0c3569404896323a4ae06b8436 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