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
Page 1 of 1
How to open system window from within LV? eg the Volume Control window
#-18
Posted 04 August 2010 - 01:56 PM
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
The way I launched Audio Properties was to use ShellExec and the command line "control mmsys.cpl" - this launches the Sound control panel.
Shaun
#-17
Posted 04 August 2010 - 02:27 PM
Shaun Hayward, on 04 August 2010 - 01:56 PM, said:
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
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
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
#-16
Posted 04 August 2010 - 03:55 PM
That's fantastic, thank you both very much.
All the best,
Martin
All the best,
Martin
-------------------
LabVIEW 2009
LabVIEW 2009
#-15
Posted 05 August 2010 - 07:07 AM
Hi,
Is it possible to mute the master volume of the system using this method?
Thanks,
Sharon
Is it possible to mute the master volume of the system using this method?
Thanks,
Sharon
#-14
Posted 05 August 2010 - 12:57 PM
Sharon_, on 05 August 2010 - 07:07 AM, said:
Hi,
Is it possible to mute the master volume of the system using this method?
Thanks,
Sharon
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 (20.04K)
Number of downloads: 16
#-13
Posted 06 August 2010 - 01:37 AM
dannyt, on 05 August 2010 - 12:57 PM, said:
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
Example_VI_BD.png
sound_mute_toggle.vi
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
Thank you very much Danny.
I just learned how to write shell scripting in VI.
-Sharon
Share this topic:
Page 1 of 1

Help



Back to top











