viewing items in control panel

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
yuvi4all
Newbie
Posts: 4
Joined: Wed Oct 10, 2012 1:34 pm

viewing items in control panel

Post by yuvi4all » Tue Oct 16, 2012 3:16 pm

hi,

I am using windows 7 -32 bit machine with macro scheduler 11 pro. I like to get the items present in 'control panel'(i.e. giving 'control' in 'run' command). FindWindowText or findWindowTextEx didnot help. Can someone help me in getting the items by any other way.

Thanks in advance.
uv.

User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Hello

Post by PepsiHog » Sat Oct 20, 2012 1:45 am

yuvi4all,

I personally don't understand your question. I saw your post days ago, but didn't reply figuring someone else would understand it.

Could you give an example of what you hope to do with this? Nine days and no answer, It could be eveyone is doing what I did.

If you want to access certain features in the control panel there are ways of doing that through a command line. Just search the internet.

PepsiHog
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Oct 20, 2012 3:20 am

Does this help:
http://www.mjtnet.com/forum/executing-c ... t1584.html

Or maybe you want to extract the text in the window? If so you would need to use one of these commands:

GetWindowTextEx
GetTextAtPoint
GetTextInRect
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

yuvi4all
Newbie
Posts: 4
Joined: Wed Oct 10, 2012 1:34 pm

Post by yuvi4all » Thu Oct 25, 2012 9:50 am

hi,

Please understand my requirement. I have one application that will install an applet in control panel. I am writing a script to check if that applet is present in the control panel. The commands mentioned by Marcus did not help.

Thanks
uv.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Oct 25, 2012 4:53 pm

Control panel applets are .cpl files. So you could just see if that .cpl file exists:

IfFileExists>%SYS_DIR%\myapp.cpl
..
Endif

So this gets a list of control panel apps:

GetFileList>%SYS_DIR%\*.cpl,control_panel_apps

Does that help?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts