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.
Need help with windows 7 wolume batch control.
Moderator: DosItHelp
-
- Expert
- Posts: 941
- Joined: 15 Jun 2012 13:16
- Location: Italy, Rome
Re: Need help with windows 7 wolume batch control.
You can do with vb script using sendkey.
For example:
MuteOff.vbs
the string "Volume Mixer" is language dependent.
It's possible use dos batch Hibryd tecnique for incapsultate a vbs...
einstein1969
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
-
- Expert
- Posts: 941
- Joined: 15 Jun 2012 13:16
- Location: Italy, Rome