Jump to content
rm65453

Change speaker status - windows 7

Recommended Posts

rm65453

Hello Everyone,

I apologize if this information is available on the forum. I have been searching for a couple of days but unable to find the solution.

So my script runs in the background and notifies user with an audio and text alert. The trouble is we had tried this previously with excel and some IM solutions but many users would either turn the volume of the speaker low or even mute it.

 

I need a function which does 1. Checks if speaker volume is mute, if yes then unmute it and then 2. raise the volume to say 80 or 100%.

 

I have looked at audio.au3 and sound.au3 but so far no success.

 

Thanks

Share this post


Link to post
Share on other sites
Andreik

Did you tried SoundSetWaveVolume()?


When the words fail... music speaks

Share this post


Link to post
Share on other sites
rm65453

Did you tried SoundSetWaveVolume()?

Yes I did. That does not change the volume of the speakers. Apparently the wave volume is different from the speaker volume control.

Share this post


Link to post
Share on other sites
rm65453

I thought i should update the message with my solution for windows 7 and 8

 

Send ("{VOLUME_UP}") ; this unmutes if muted
    _SetMasterVolumeLevel(0) ; this takes the volume to 100%

Feel free to update the thread if a better solution comes up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×