tdenney Posted October 14, 2006 Share Posted October 14, 2006 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 More sharing options...
PaulIA Posted October 17, 2006 Share Posted October 17, 2006 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 More sharing options...
FuryCell Posted October 17, 2006 Share Posted October 17, 2006 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 More sharing options...
tdenney Posted October 19, 2006 Author Share Posted October 19, 2006 Thanks for your help! I think the RunDLL32 will do the trick. I will also checkout RegMon for finding the exact location for registry changes. Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now