FabianBengtsson
Joined: 14 Nov 2006 Posts: 14
|
Posted: Sat Jul 12, 2008 2:45 pm Post subject: Control (master) volume with your scrollwheel [VISTA]+[XP] |
|
|
I noticed that my old script to control the volume in vista did not work properly so I made a rewrite using Vista Audio Control Functions.
Here is the simple script:
Usage:Hold the windows button and scroll with the mousewheel to increase or decrease the maste volume.
Script Requirements:
Code:
| Code: | #NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#Include COM.ahk
#Include VA.ahk
stepsize = 5 ; Control the amount of volume increase/decrease
#WheelUp::
COM_Init()
volume := VA_GetMasterVolume()
VA_SetMasterVolume(volume+stepsize)
COM_Term()
return
#WheelDown::
COM_Init()
volume := VA_GetMasterVolume()
VA_SetMasterVolume(volume-stepsize)
COM_Term()
return |
XP version
This one also works quite good in vista with XP compatibly mode enabled.
| Code: |
#WheelDown::SoundSet, -4
return
#WheelUp::SoundSet, +4
return
|
_________________ Don't capture me again!! |
|