Skip to content

Instantly share code, notes, and snippets.

@carlosame
Created January 12, 2022 19:29
Show Gist options
  • Save carlosame/9f350a2037f22ecf0f86cdf35344bc19 to your computer and use it in GitHub Desktop.
Save carlosame/9f350a2037f22ecf0f86cdf35344bc19 to your computer and use it in GitHub Desktop.
Finer-grained Windows volume keys AutoHotkey script
; Finer-grained Windows volume keys AutoHotkey script
;
; See https://www.autohotkey.com/ for info about AutoHotkey
;
; Volume Up/Down keys use increments/decrements
; of 2 if volume is above 6, 1 if below.
#SingleInstance Force
$Volume_Up::
SoundGet, volume
if (volume < 6) {
incr = 1
} else {
incr = 2
}
SendInput {Volume_Up}
SoundSet, volume + incr
Return
$Volume_Down::
SoundGet, volume
if (volume < 7) {
incr = 1
} else {
incr = 2
}
SendInput {Volume_Down}
SoundSet, volume - incr
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment