Jump to content
Sign in to follow this  
Angel

Right click on the desktop

Recommended Posts

Angel

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
bobheart

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

Share this post


Link to post
Share on other sites
Nova

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
bobheart

Thats ok just shows two ways to do it . lol

Share this post


Link to post
Share on other sites
this-is-me

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
upnorth

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

Share this post


Link to post
Share on other sites
Angel

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  

×