Jump to content

Hey, what do I stick in Run() to open the Volume Mixer?


Go to solution Solved by Jos,

Recommended Posts

I used to be able to get to the Volume Mixer using the volume icon. In Windows 10/11, you can't do that.
I want that back, so I'm writing a script that sits in the tray and opens this when clicked.
Well, I started to.
Then I realized, I don't know what to run. What am I running?
 

#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>
#include <StringConstants.au3>
#include <TrayConstants.au3> 

$OpenVm = TrayCreateItem("Open Volume Mixer")
$idAbout = TrayCreateItem("About")
$idExit = TrayCreateItem("Close Script")


Opt("TrayMenuMode", 3)
While 1
    While 1
        Switch TrayGetMsg()
            Case $idAbout ; Display a message box about the AutoIt version and installation path of the AutoIt executable.
                MsgBox($MB_SYSTEMMODAL, "", "Script to open the Volume Mixer. By Jerry (Draygoes) and the AutoIt Forum users." & @CRLF & @CRLF & _
                        "Version: " & @AutoItVersion & @CRLF & _
                        "Install Path: " & StringLeft(@AutoItExe, StringInStr(@AutoItExe, "\", $STR_NOCASESENSEBASIC, -1) - 1)) ; Find the folder of a full path.

            Case $idExit ; Exit the loop.
                Exit

            Case    $OpenVm
        EndSwitch
    WEnd

WEnd




Screenshot:
https://imgur.com/a/p7OWAJU

Edited by Draygoes
Added screenshot of Volume Mixer, Added to title..
Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 
Link to comment
Share on other sites

  • Draygoes changed the title to Hey, what do I stick in Run() to open the Volume Mixer?

Thanks to both @Danp2and @Jos as Danp gave me exactly what I was asking for, and Jos gave me the better version of that answer.
You both rock.

And Dan, no, when I right click I get;
... Open Volume Mixer...
I sware that wasn't there before. 😅

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 
Link to comment
Share on other sites

1 hour ago, Jos said:

Do you mean?:

sndvol.exe

 

You know what? Even though I now have a different way to open the volume mixer, I'm still using this because this opens the one Jos had a pretty good idea that I'd prefer... because he's absolutly right, I do prefer it. :D

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

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