Page 1 of 1

Need help with windows 7 wolume batch control.

Posted: 18 Aug 2014 10:59
by traderain
So i would like to create a program which loops.
It would constantly unmute the system and set the given system volume level but after those it checks for keypress if there isnt then it loops back if there is it stops and asks for what is that a,ount that the user wants the system volume to set to.
Can anyone help my with this?
I really need it and i would really appriciate any help.
Thanks.

Re: Need help with windows 7 wolume batch control.

Posted: 22 Aug 2014 12:43
by einstein1969
You can do with vb script using sendkey.

For example:

MuteOff.vbs

Code: Select all

Set wShell=CreateObject("WScript.Shell")
wShell.Run "sndvol.exe"
Do While Not wShell.AppActivate("Volume Mixer")
WScript.Sleep 100
Loop
wShell.SendKeys "{up}{down}{esc}"


the string "Volume Mixer" is language dependent.

It's possible use dos batch Hibryd tecnique for incapsultate a vbs...

einstein1969

Re: Need help with windows 7 wolume batch control.

Posted: 22 Aug 2014 12:51
by einstein1969
Example string :

volume at 50%

Code: Select all

wShell.SendKeys "{home}{pgdn 2}{down 10}{esc}"