/* ChangeVolume.ahk for AutoHotkey V1.1 Simply scroll the mouse wheel up or down while hovering over Windows Systems Taskbar to adjust the Windows speaker volume. The script uses conditional directives to isolate the mouse scroll wheel as a Hotkey. For AutoHotkey V2.0, see ChangeVol.ahk2 */ #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. #If MouseIsOver("ahk_class Shell_TrayWnd") WheelUp::Send {Volume_Up} WheelDown::Send {Volume_Down} #If MouseIsOver(WinTitle) { MouseGetPos,,, Win Return WinExist(WinTitle . " ahk_id " . Win) }