Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;----------
- ;Change volume using scroll wheel over taskbar
- ; Source: http://www.autohotkey.net/~Lexikos/AutoHotkey_L/docs/commands/_If.htm
- #If MouseIsOver("ahk_class Shell_TrayWnd")
- WheelUp::
- a := MouseIsOver("ahk_class Shell_TrayWnd")
- MsgBox, %a%
- Send {Volume_Up}
- return
- WheelDown::
- Send {Volume_Down}
- return
- ;MButton::
- ;Send {Volume_Mute}
- ;return
- MouseIsOver(WinTitle) {
- MouseGetPos,,, Win
- return WinExist(WinTitle . " ahk_id " . Win)
- }
- ;----------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement