Advertisement
Guest User

Untitled

a guest
Apr 7th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;----------
  2. ;Change volume using scroll wheel over taskbar
  3. ; Source: http://www.autohotkey.net/~Lexikos/AutoHotkey_L/docs/commands/_If.htm
  4.  
  5. #If MouseIsOver("ahk_class Shell_TrayWnd")
  6.  
  7.  
  8.  
  9.  
  10. WheelUp::
  11. a := MouseIsOver("ahk_class Shell_TrayWnd")
  12. MsgBox, %a%
  13. Send {Volume_Up}
  14. return
  15.  
  16. WheelDown::
  17. Send {Volume_Down}
  18. return
  19.  
  20. ;MButton::
  21. ;Send {Volume_Mute}
  22. ;return
  23.  
  24. MouseIsOver(WinTitle) {
  25.     MouseGetPos,,, Win
  26.     return WinExist(WinTitle . " ahk_id " . Win)
  27. }
  28. ;----------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement