Jump to content

Volume Control


Recommended Posts

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...

Link to comment
Share on other sites

:wacko: ?

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy