AutoHotKey (AHK) Adjust Sound Volume using Shift Mouse Up / Down


; =====================================================
; Settings
; =====================================================

#SingleInstance force
#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.
                                                   ; Enlarges variable's holding capacity or frees its memory
                                                   ; Necessary for unusual circumstances such as Dll calls
VarSetCapacity(APPBARDATA, A_PtrSize=4 ? 36:48)    ; required for Task Bar Auto Hide Toggle
#MaxHotkeysPerInterval 200                         ; increase max keys to allow mouse wheel spin to change volume with a popup warning

; =====================================================
; Adjust system volume using Shift and Mouse Wheel.
; Make sure to use MaxHotkeysPerInterval as shown above.
; =====================================================

+WheelUp::
		SoundSet, +5
		return

+WheelDown::
		SoundSet, -5
		return

Bonus Tip. Modifier Keys

! Alt
^ Ctrl
+ Shift
# Windows

Published by

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: