Angel Posted September 4, 2004 Share Posted September 4, 2004 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 Link to comment Share on other sites More sharing options...
bobheart Posted September 4, 2004 Share Posted September 4, 2004 Run(@ComSpec & " /c RunDLL32.EXE shell32.dll,Control_RunDLL desk.cpl,,0") Link to comment Share on other sites More sharing options...
Nova Posted September 4, 2004 Share Posted September 4, 2004 (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 September 4, 2004 by nova Link to comment Share on other sites More sharing options...
bobheart Posted September 4, 2004 Share Posted September 4, 2004 Thats ok just shows two ways to do it . lol Link to comment Share on other sites More sharing options...
herewasplato Posted September 4, 2004 Share Posted September 4, 2004 (edited) here is a website that lists how to get to many controlshttp://vbnet.mvps.org/index.html?code/system/controlpnl2.htmwhen used with AutoIt's Run function as mentioned above you can get to a lot of stufflater.... Edited October 16, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
this-is-me Posted September 5, 2004 Share Posted September 5, 2004 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? Link to comment Share on other sites More sharing options...
upnorth Posted September 5, 2004 Share Posted September 5, 2004 WinActivate("Program Manager") ControlClick ( "Program Manager", "", "Internet Explorer_Server1" , "right") sleep(50) Send("r") Link to comment Share on other sites More sharing options...
Angel Posted September 6, 2004 Author Share Posted September 6, 2004 Thanks a lot guys! This is perfect. Thanks!!! Angel 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