Scott D Hansen Posted February 6, 2006 Share Posted February 6, 2006 I am trying to select and open Display Properties from the control panel. I can open the control panel by run("control panel") How can I select the 'Display' Icon and then open it? Thanks in advance, Scott Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 6, 2006 Share Posted February 6, 2006 (edited) I am trying to select and open Display Properties from the control panel. I can open the control panel by run("control panel") How can I select the 'Display' Icon and then open it? Thanks in advance, Scott Do you mean something like this? run("control panel") Sleep(250) Send("{down}") Sleep(250) Send("{Enter}") When you are in Details View So long, Mega Edited February 6, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
greenmachine Posted February 6, 2006 Share Posted February 6, 2006 (edited) I think a proper workaround would be to do Send ("d") twice (or however many times it takes to select the Display icon), and then Send ("{ENTER}"). Edited February 6, 2006 by greenmachine Link to comment Share on other sites More sharing options...
Skruge Posted February 6, 2006 Share Posted February 6, 2006 You can also skip the control panel and launch the applet directly. Run(@SystemDir & "\control.exe desk.cpl", @SystemDir) [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 6, 2006 Share Posted February 6, 2006 I think a proper workaround would be to do Send ("d") twice (or however many times it takes to select the Display icon), and then Send ("{ENTER}").I agree with you, but my Windows is German and then it is "Ansicht" instead of Display. So, the key to press depends on the language. Nevertheless it´s better to press the letter in lieu of "down down left " or something like this.So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
greenmachine Posted February 6, 2006 Share Posted February 6, 2006 You can also skip the control panel and launch the applet directly. Run(@SystemDir & "\control.exe desk.cpl", @SystemDir) That's what I was trying to find, but I had no idea what it was called. Nice job. Link to comment Share on other sites More sharing options...
Laine Posted February 6, 2006 Share Posted February 6, 2006 You can also skip the control panel and launch the applet directly. Run(@SystemDir & "\control.exe desk.cpl", @SystemDir) I could see it launced rundll32.exe and was trying to use that. forgot about control.exe Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 6, 2006 Share Posted February 6, 2006 I could see it launced rundll32.exe and was trying to use that.forgot about control.exeIf your purpose was to change screen resolution you might check out this post by psandu.ro. It worked great for me (after being told it requires Beta). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
herewasplato Posted February 6, 2006 Share Posted February 6, 2006 I could see it launced rundll32.exe and was trying to use that. forgot about control.exeRun("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2") ;change the number on the end of the run line... ;...to bring up the tab of interest ;0 = Desktop tab ;1 = Screen Saver tab ;2 = Appearance tab ;3 = Settings tab ;5 = Themes tabhttp://vbnet.mvps.org/index.html?code/system/controlpnl2.htm [size="1"][font="Arial"].[u].[/u][/font][/size] 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