Jump to content

Recommended Posts

Posted

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

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
Posted

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?

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
×
×
  • Create New...