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

Author: Scott Hollows

Enterprise software developer based in Perth, Western Australia. Oracle, Delphi, Data Warehouse design and ETL, Data Architect, Business Intelligence, Oracle performance tuning. Oracle ApEx, Discoverer, BI Publisher, OBIEE, Forms, Reports, SQL, PLSQL. Blockchain software development, cryptocurrency exchange integration and trading analysis Australian Delphi User Group (ADUG) - WA branch manager and past national president LinkedIn www.linkedin.com/in/scotthollows

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 )

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: