Advertisement
Mandrew

SoundUpDown.ahk - Improved?

Jul 27th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; SoundUpDown.ahk
  2. ; (c) mandrew 2012
  3.  
  4. ; Might not be done here yet... let me check one more thing...
  5.  
  6. ; Yep. This works when you hold down Shift and roll the mouse wheel up or down.
  7. ; I can't actually test it because I'm on linux but I'll make it public idgaf
  8. ; I can still make this fancier...
  9. if A_OSVERSION in WIN_VISTA
  10. {
  11.  VistaMethod:=1
  12. }
  13. +WheelUp::
  14. if VistaMethod
  15.  Send {Volume_Up}
  16. else
  17.  SoundSetWaveVolume, +5
  18. Return
  19.  
  20. +WheelDown::
  21. if VistaMethod
  22.  Send {Volume_Down}
  23. else
  24.  SoundSetWaveVolume, -5
  25. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement