Adjusting volume with Mouse scrolling while it is over the Windows Taskbar

Here’s a great example how awesome AutoHotkey is! I’ve been using it for years! It allows you to adjust the volume of your speakers by scrolling with your middle-mouse button when your over your taskbar.

Adjusting volume with Mouse scrolling while it is over the Windows Taskbar

Adjusting volume with Mouse script


;*******adjust volume by scrolling while mouse is over taskbar*********************************
; http://www.autohotkey.net/~Lexikos/AutoHotkey_L/docs/commands/_If.htm
#If MouseIsOver("ahk_class Shell_TrayWnd")
WheelUp::Send {Volume_Up} ;Increase volume when over command tray
WheelDown::Send {Volume_Down} ;Decrease volumen when over command tray
MouseIsOver(WinTitle) {
MouseGetPos,,, Win
return WinExist(WinTitle " ahk_id " Win)
}
#If

Comments are closed.