GrizDoug Posted January 21, 2009 Share Posted January 21, 2009 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!! Link to comment Share on other sites More sharing options...
KaFu Posted January 21, 2009 Share Posted January 21, 2009 Wrong syntax, try Run('control mmsys.cpl','',@SW_HIDE) OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
GrizDoug Posted January 21, 2009 Author Share Posted January 21, 2009 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!! Link to comment Share on other sites More sharing options...
ResNullius Posted January 21, 2009 Share Posted January 21, 2009 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? Link to comment Share on other sites More sharing options...
GrizDoug Posted January 22, 2009 Author Share Posted January 22, 2009 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!! Link to comment Share on other sites More sharing options...
ResNullius Posted January 23, 2009 Share Posted January 23, 2009 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... Link to comment Share on other sites More sharing options...
GrizDoug Posted January 23, 2009 Author Share Posted January 23, 2009 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!! Link to comment Share on other sites More sharing options...
ResNullius Posted January 24, 2009 Share Posted January 24, 2009 (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;#entry149390and Volly's remake/update at http://www.autoitscript.com/forum/index.ph...st&p=409587Edit: for the sake of completeness, also see http://www.autoitscript.com/forum/index.ph...st&p=327627 Edited January 24, 2009 by ResNullius Link to comment Share on other sites More sharing options...
GrizDoug Posted January 26, 2009 Author Share Posted January 26, 2009 OK, you might want to check wiredbits' mixer UDF at out: http://www.autoitscript.com/forum/index.ph...mp;#entry149390and Volly's remake/update at http://www.autoitscript.com/forum/index.ph...st&p=409587Edit: for the sake of completeness, also see http://www.autoitscript.com/forum/index.ph...st&p=327627I 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!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now