Created
January 12, 2022 19:29
-
-
Save carlosame/9f350a2037f22ecf0f86cdf35344bc19 to your computer and use it in GitHub Desktop.
Finer-grained Windows volume keys AutoHotkey script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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