Jump to content

Change speaker status - windows 7


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...