Sign in to follow this  
Followers 0
Angel

Right click on the desktop

8 posts in this topic

Hi,

I need to open the Display preferences window. To do so I need to right click in an empty space on the desktop. The problem is that I do not know how to find an "empty" space in the desktop automatically. Is there an easy way of doing this in autoit? Or perhaps there is a better way of opening the display properties in windows XP?

Thanks in advance!

Angel

Share this post


Link to post
Share on other sites



Run(@ComSpec & " /c RunDLL32.EXE shell32.dll,Control_RunDLL desk.cpl,,0")

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

U dont need to right click the desktop

Try this

Run(@comspec & " /c " & @Windowsdir & "\system32\desk.cpl","",@sw_hide)

EDIT:Sry replyed @ same time as u bobheart didnt c ur reply till it was too late

Edited by nova

Share this post


Link to post
Share on other sites

Thats ok just shows two ways to do it . lol

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

here is a website that lists how to get to many controls

http://vbnet.mvps.org/index.html?code/system/controlpnl2.htm

when used with AutoIt's Run function as mentioned above you can get to a lot of stuff

later....

Edited by herewasplato

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

Share this post


Link to post
Share on other sites

The following will ACTUALLY right-click the desktop if you need to do something like arranging the desktop icons or something as well:

WinActivate("Program Manager")
Send("{DOWN}{LEFT}{UP}{RIGHT}^{SPACE}{APPSKEY}")

It activates the desktop, makes sure no icons are selected, and then right clicks. In the new unstable, It will also be possible to interact with the folderview on the desktop directly to make sure there are no icons selected.


Who else would I be?

Share this post


Link to post
Share on other sites

WinActivate("Program Manager")
ControlClick ( "Program Manager", "", "Internet Explorer_Server1" , "right")
sleep(50)
Send("r")

Share this post


Link to post
Share on other sites

Thanks a lot guys! This is perfect.

Thanks!!! :ph34r:

Angel

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