LAVA: How to open system window from within LV? - LAVA

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to open system window from within LV? eg the Volume Control window Rate Topic: -----

#-19 User is offline   martin mcd 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 55
  • Joined: 17-November 08
  • Location:Bristol, UK
  • Version:LabVIEW 2009
  • Since:2003

Posted 04 August 2010 - 01:24 PM

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
-------------------
LabVIEW 2009
0

#-18 User is offline   Shaun Hayward 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 123
  • Joined: 22-October 07
  • Location:Fort Lee, NJ, USA
  • Version:LabVIEW 2009
  • Since:2003

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! :D

The way I launched Audio Properties was to use ShellExec and the command line "control mmsys.cpl" - this launches the Sound control panel.


Shaun
0

#-17 User is offline   dannyt 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 171
  • Joined: 13-December 06
  • Location:Devon UK
  • Version:LabVIEW 8.2
  • Since:2007

Posted 04 August 2010 - 02:27 PM

View PostShaun 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! :D

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 :thumbup1: , 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

#-16 User is offline   martin mcd 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 55
  • Joined: 17-November 08
  • Location:Bristol, UK
  • Version:LabVIEW 2009
  • Since:2003

Posted 04 August 2010 - 03:55 PM

That's fantastic, thank you both very much.

All the best,


Martin
-------------------
LabVIEW 2009
0

#-15 User is offline   Sharon_ 

  • Active
  • Pip
  • Group: Members
  • Posts: 23
  • Joined: 14-October 09
  • Version:LabVIEW 8.6
  • Since:2009

Posted 05 August 2010 - 07:07 AM

Hi,
Is it possible to mute the master volume of the system using this method?:wacko:


Thanks,
Sharon
0

#-14 User is offline   dannyt 

  • Very Active
  • PipPipPip
  • Group: Members
  • Posts: 171
  • Joined: 13-December 06
  • Location:Devon UK
  • Version:LabVIEW 8.2
  • Since:2007

Posted 05 August 2010 - 12:57 PM

View PostSharon_, on 05 August 2010 - 07:07 AM, said:

Hi,
Is it possible to mute the master volume of the system using this method?:wacko:


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

Attached Image: Example_VI_BD.png

Attached File  sound_mute_toggle.vi (20.04K)
Number of downloads: 16
0

#-13 User is offline   Sharon_ 

  • Active
  • Pip
  • Group: Members
  • Posts: 23
  • Joined: 14-October 09
  • Version:LabVIEW 8.6
  • Since:2009

Posted 06 August 2010 - 01:37 AM

View Postdannyt, 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

Attachment Example_VI_BD.png

Attachment sound_mute_toggle.vi


Thank you very much Danny. :worshippy:
I just learned how to write shell scripting in VI.

-Sharon
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic