Need help with windows 7 wolume batch control.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
traderain
Posts: 1
Joined: 18 Aug 2014 10:53

Need help with windows 7 wolume batch control.

#1 Post by traderain » 18 Aug 2014 10:59

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.

einstein1969
Expert
Posts: 941
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: Need help with windows 7 wolume batch control.

#2 Post by einstein1969 » 22 Aug 2014 12:43

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

einstein1969
Expert
Posts: 941
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: Need help with windows 7 wolume batch control.

#3 Post by einstein1969 » 22 Aug 2014 12:51

Example string :

volume at 50%

Code: Select all

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

Post Reply