Jump to content

How to open system window from within LV?


Recommended Posts

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

Link to comment

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

  • Like 1
Link to comment

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

post-7256-073589300 1281012911_thumb.png

sound_mute_toggle.vi

Link to comment

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

post-7256-073589300 1281012911_thumb.png

sound_mute_toggle.vi

Thank you very much Danny. :worshippy:

I just learned how to write shell scripting in VI.

-Sharon

Link to comment
  • 8 months later...

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

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!

post-16152-0-98378100-1302423621_thumb.p

Link to comment

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.