MartinMcD Posted August 4, 2010 Report Share Posted August 4, 2010 Hello, I'm writing an audio app. I'd like to have a menu item 'Audio Device Properties' and another 'System Volume Control' that launches/opens the appropriate Windows system control panels. ie. 'Sounds and Audio Device Properties' from the Control Panel and Volume Control. Is this possible please? It's just a little thing but it would make my app nicer to use. Thanks, Martin Quote Link to comment
Shaun Hayward Posted August 4, 2010 Report Share Posted August 4, 2010 Hi Again... it appears your heading down a road I've been before on more than one occasion! The way I launched Audio Properties was to use ShellExec and the command line "control mmsys.cpl" - this launches the Sound control panel. Shaun Quote Link to comment
dannyt Posted August 4, 2010 Report Share Posted August 4, 2010 Hi Again... it appears your heading down a road I've been before on more than one occasion! The way I launched Audio Properties was to use ShellExec and the command line "control mmsys.cpl" - this launches the Sound control panel. Shaun You just beat me to the punch there Shaun , I was going to say the same thing. As an added extra here is a list of other useful control Panel app names Just remember that you need to type control and then the applet’s name! Accessibility Options access.cpl Add/Remove Programs appwiz.cpl Add Hardware Wizard hdwwiz.cpl Administrative Tools admintools Automatic Updates wuaucpl.cpl Bluetooth Properties bthprops.cpl Control Panel panel Desktop Properties desktop Desktop Appearances Properties color Display Properties desk.cpl Fastfind Properties findfast.cpl Firewall Properties firewall.cpl Fonts Folder fonts Game Controllers joy.cpl Infrared Properties infrared Internet Options inetcpl.cpl iSCSI Initiator iscsicpl.cpl Java Control Panel jpicpl32.cpl Keyboard Properties main.cpl keyboard Licensing Mode liccpa.cpl Mouse Properties main.cpl Network Connections ncpa.cpl Network Setup Wizard netsetup.cpl ODBC Properties odbccp32.cpl Power Options powercfg.cpl Printers Folder printers Regional and Language Options intl.cpl Scanners and Camera Properties sticpl.cpl Schedule Tasks schedtasks Sound and Audio Devices mmsys.cpl Stored Passwords keymgr.cpl System Properties sysdm.cpl Telephone and Modem Properties telephon.cpl Time and Date Settings timedate.cpl User Accounts nusrmgr.cpl User Accounts Advances userpasswords2 User Passwords userpasswords Windows Security Center wscui.cpl Wireless Link irprops.cpl 1 Quote Link to comment
MartinMcD Posted August 4, 2010 Author Report Share Posted August 4, 2010 That's fantastic, thank you both very much. All the best, Martin Quote Link to comment
Sharon_ Posted August 5, 2010 Report Share Posted August 5, 2010 Hi, Is it possible to mute the master volume of the system using this method? Thanks, Sharon Quote Link to comment
dannyt Posted August 5, 2010 Report Share Posted August 5, 2010 Hi, Is it possible to mute the master volume of the system using this method? Thanks, Sharon Do not know why, but this seemed a fun thing to try So I have been playing this this off and on. I now have a VI that toggles the sound mute button, it works fine in edit highlight mode but is a little unpredictable when not highlighted, would need to play around and put a few waits in place. I am sure some LabVIEW purists will come up with a better solution sound_mute_toggle.vi Quote Link to comment
Sharon_ Posted August 6, 2010 Report Share Posted August 6, 2010 Do not know why, but this seemed a fun thing to try So I have been playing this this off and on. I now have a VI that toggles the sound mute button, it works fine in edit highlight mode but is a little unpredictable when not highlighted, would need to play around and put a few waits in place. I am sure some LabVIEW purists will come up with a better solution sound_mute_toggle.vi Thank you very much Danny. I just learned how to write shell scripting in VI. -Sharon Quote Link to comment
durnek60 Posted April 10, 2011 Report Share Posted April 10, 2011 You just beat me to the punch there Shaun , I was going to say the same thing. As an added extra here is a list of other useful control Panel app names Just remember that you need to type control and then the applet’s name! Accessibility Options access.cpl Add/Remove Programs appwiz.cpl Add Hardware Wizard hdwwiz.cpl Administrative Tools admintools Automatic Updates wuaucpl.cpl Bluetooth Properties bthprops.cpl Control Panel panel Desktop Properties desktop Desktop Appearances Properties color Display Properties desk.cpl Fastfind Properties findfast.cpl Firewall Properties firewall.cpl Fonts Folder fonts Game Controllers joy.cpl Infrared Properties infrared Internet Options inetcpl.cpl iSCSI Initiator iscsicpl.cpl Java Control Panel jpicpl32.cpl Keyboard Properties main.cpl keyboard Licensing Mode liccpa.cpl Mouse Properties main.cpl Network Connections ncpa.cpl Network Setup Wizard netsetup.cpl ODBC Properties odbccp32.cpl Power Options powercfg.cpl Printers Folder printers Regional and Language Options intl.cpl Scanners and Camera Properties sticpl.cpl Schedule Tasks schedtasks Sound and Audio Devices mmsys.cpl Stored Passwords keymgr.cpl System Properties sysdm.cpl Telephone and Modem Properties telephon.cpl Time and Date Settings timedate.cpl User Accounts nusrmgr.cpl User Accounts Advances userpasswords2 User Passwords userpasswords Windows Security Center wscui.cpl Wireless Link irprops.cpl Hello! I've found your reply what is very helpful. I think I have the same problem, but I don't know how to solve is.... I Would like to do the following: I've a scanner: Colortrac Smartlf Ci24, I would like to use it (start scanning, setting up, and so on... from labview.) I did not find any manual about this scanner. Could you help me how to go on? 1.) I've attached a picture, that would be greate if I can get this property window from labview... 2.) The best would be if I could start the scanning process from labview. Thank you very much! Quote Link to comment
Rolf Kalbermatter Posted April 11, 2011 Report Share Posted April 11, 2011 Hello! I've found your reply what is very helpful. I think I have the same problem, but I don't know how to solve is.... I Would like to do the following: I've a scanner: Colortrac Smartlf Ci24, I would like to use it (start scanning, setting up, and so on... from labview.) I did not find any manual about this scanner. Could you help me how to go on? 1.) I've attached a picture, that would be greate if I can get this property window from labview... 2.) The best would be if I could start the scanning process from labview. That is not control panel related. You will want to look for Twain control from within LabVIEW. There exist libraries, some commercial and I think at least one non-commercial to do that, but be warned: Twain is a recommended standard to the letter, meaning recommended is all there is. Every scanner supports whatever it feels like from that standard, and that is usually very little. It's sometimes a vabanque game how to get a scanner to work through Twain, yet any other way of accessing scanners (for instance DirectX) is usually even more problematic. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.