walduxas Posted May 7, 2009 Report Share Posted May 7, 2009 Hi,I know that in order to mute/unmute the system sound it's possible to use this code:Set WshShell = CreateObject("WScript.Shell")WshShell.SendKeys(chr(173))However, this code works as if it presses the "Mute" check box in system volume. This means thet it mutes the volume if it's not muted and unmutes the volume if it's muted. But first I need to check if system volume is muted/unmuted and then do appropriate action. Does anyone know what code could be used to check if system volume is muted/unmuted? I believe that windows have to store somewhere the current value of system volume so it also should be possible to read that value... Quote Link to comment Share on other sites More sharing options...
Dencandy Posted May 8, 2009 Report Share Posted May 8, 2009 ?Sorry, I'm not being rude, but why not just use the built in mute controls from the system tray? Quote Link to comment Share on other sites More sharing options...
walduxas Posted May 8, 2009 Author Report Share Posted May 8, 2009 ?Sorry, I'm not being rude, but why not just use the built in mute controls from the system tray?Very simply - because I need to do it by using a code. The program that I created for my customers let's say "does something". However on some events I need the sound to be muted and after those events are finished - unmuted. Quote Link to comment Share on other sites More sharing options...
Dencandy Posted May 9, 2009 Report Share Posted May 9, 2009 Ah, I see. Sorry, don't know the answer. Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted May 9, 2009 Report Share Posted May 9, 2009 Sorry, I don't know either - I have never done any sound application.Could you try to find something at http://msdn.microsoft.com/ - I usually go there if I look for a solution. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.