Sign in to follow this  
Followers 0
Scott D Hansen

Select and activate icon in window

9 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by greenmachine

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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. :lmao:

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I could see it launced rundll32.exe and was trying to use that.

forgot about control.exe

If 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).

:lmao:


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

Share this post


Link to post
Share on other sites

I could see it launced rundll32.exe and was trying to use that.

forgot about control.exe

Run("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 tab
http://vbnet.mvps.org/index.html?code/system/controlpnl2.htm

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
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
Sign in to follow this  
Followers 0