Sign in to follow this  
Followers 0
GrizDoug

Hide configuration of Sound dialog from tray

9 posts in this topic

I added #NoTrayIcon to the top of my script. Also, in the Run() call for the "control mmsys.cpl", I added the parameter @SW_HIDE, but the dialog still is visible as the script runs. I'm trying to hide the dialog while the script runs. Here is my line of code:

Run("control mmsys.cpl,,@SW_HIDE")

Any help would be greatly appreciated and thanks in advance.


Gotta keep on truckin' to find the perfect solution, but sometimes you run into roadblocks, so you gotta jam right through those roadblocks!!

Share this post


Link to post
Share on other sites



Wrong syntax, try

Run('control mmsys.cpl','',@SW_HIDE)
I tried and it didn't help. I used single quotes like you have, and I tried double quotes using the same syntax. No luck! By the way, this is a Vista box, in case that has any effect on it. Thanks in advance.

Gotta keep on truckin' to find the perfect solution, but sometimes you run into roadblocks, so you gotta jam right through those roadblocks!!

Share this post


Link to post
Share on other sites

I tried and it didn't help. I used single quotes like you have, and I tried double quotes using the same syntax. No luck! By the way, this is a Vista box, in case that has any effect on it. Thanks in advance.

I don't think you can start control panel applets in a hidden state: Windows just won't let you.

You're only recourse is to start it then hide it (so they'll be a momentary flash) or better yet, almost everything you can do through the applet you can accomplish with RegWrite(), so that would be your best bet.

What does your script do?

Share this post


Link to post
Share on other sites

I don't think you can start control panel applets in a hidden state: Windows just won't let you.

You're only recourse is to start it then hide it (so they'll be a momentary flash) or better yet, almost everything you can do through the applet you can accomplish with RegWrite(), so that would be your best bet.

What does your script do?

It configures the devices accessed by the Sound icon (white speaker) in the tray at the lower right of the screen. These are Playback and Recording devices attached to the computer.


Gotta keep on truckin' to find the perfect solution, but sometimes you run into roadblocks, so you gotta jam right through those roadblocks!!

Share this post


Link to post
Share on other sites

It configures the devices accessed by the Sound icon (white speaker) in the tray at the lower right of the screen. These are Playback and Recording devices attached to the computer.

Ok, almost there: configures how?

Changes the devices?

Changes properties of the devices already set?

Need more specifics...

Share this post


Link to post
Share on other sites

Ok, almost there: configures how?

Changes the devices?

Changes properties of the devices already set?

Need more specifics...

In your words:

"Changes properties of the devices already set."

The way it would be done manually is to select the device from the Playback or Recording devices in the Sound dialog and then click the properties button to display the properties dialog with it's tabs (General, Levels, Advanced, etc.), which each have various settings for the device, that can be changed in one way or another.

I hope this gives you a better understanding of the peoperties I want to have access to for each device.

Thanks in advance.


Gotta keep on truckin' to find the perfect solution, but sometimes you run into roadblocks, so you gotta jam right through those roadblocks!!

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

In your words:

"Changes properties of the devices already set."

The way it would be done manually is to select the device from the Playback or Recording devices in the Sound dialog and then click the properties button to display the properties dialog with it's tabs (General, Levels, Advanced, etc.), which each have various settings for the device, that can be changed in one way or another.

I hope this gives you a better understanding of the peoperties I want to have access to for each device.

Thanks in advance.

OK, you might want to check wiredbits' mixer UDF at out: http://www.autoitscript.com/forum/index.ph...mp;#entry149390

and Volly's remake/update at http://www.autoitscript.com/forum/index.ph...st&p=409587

Edit: for the sake of completeness, also see http://www.autoitscript.com/forum/index.ph...st&p=327627

Edited by ResNullius

Share this post


Link to post
Share on other sites

OK, you might want to check wiredbits' mixer UDF at out: http://www.autoitscript.com/forum/index.ph...mp;#entry149390

and Volly's remake/update at http://www.autoitscript.com/forum/index.ph...st&p=409587

Edit: for the sake of completeness, also see http://www.autoitscript.com/forum/index.ph...st&p=327627

I appreciate your input, but you may have missed the fact that this is being done on a Vista box and is already working. I have already incorporated some of Volly's concepts. What I need, is to be able to run this so that the script can be hidden. I have tried several things as you can see from the beginning of this thread, but have not had any luck. That is what I am focusing on. I would like to hide the script while it is running. Any ideas along that line would be greatly aappreciated and thanks in advance.


Gotta keep on truckin' to find the perfect solution, but sometimes you run into roadblocks, so you gotta jam right through those roadblocks!!

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
Sign in to follow this  
Followers 0