SHOW:
|
|
- or go back to the newest paste.
| 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 | - | SoundSetWaveVolume, +5 |
| 9 | + | if A_OSVERSION in WIN_VISTA |
| 10 | {
| |
| 11 | VistaMethod:=1 | |
| 12 | } | |
| 13 | - | SoundSetWaveVolume, -5 |
| 13 | + | |
| 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 |