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 versionThis one also works quite good in vista with XP compatibly mode enabled.
Code:
#WheelDown::SoundSet, -4
return
#WheelUp::SoundSet, +4
return