Jump to content

Control Panel & relative icons


tdenney
 Share

Recommended Posts

I am trying to automate a script that sets up a desktop. Many of the settings I need are in the Control Panel. For most of what I need I can use, eg: control desktop, control folders, etc. However, for accessing things like Power Options, I only know how to use {TAB 3} {down 2}, etc.. This is fine if all the computers are going to exactly the same, however the placement of icons varies depending on different setups.

Now the heart of my question: is there a way to read in what icon is selected? Something like $iconname = ReadSelection() So, I could write a script that loops through the icons comparing them until its name matches what I want to execute.

Any help would be greatly appreciated.

Link to comment
Share on other sites

You can open specific system dialogs by using RunDll32. For a reference on what dialogs RunDll32 can open, take a look at Dx21. Once you have the dialogs open, you can manipulate the controls to set up your desktop. There are a couple of examples in Auto3Lib that show how to set up the Taskbar and Performance option dialogs if you need examples.

Hope this helps.

Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

Also , a lot of settings that are changed are stored in the registry. This means you can do a RegWrite() to change the settings. A tool like RegMon is useful for finding where settings are located.

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...