Achilles Posted July 1, 2010 Share Posted July 1, 2010 ShellExecute(@DesktopDir, -1, -1, 'Properties')Unless I'm missing something very obvious that should show the properties of you desktop. Does this work for anyone? Running Windows 7 64bit, AutoIt 3.3.6.1 My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 1, 2010 Share Posted July 1, 2010 This error message is from Vista, http://keys.wbfgv.net/Clipboard03.png. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Spiff59 Posted July 1, 2010 Share Posted July 1, 2010 (edited) I don't see how you can execute a path, there's nothing associated with it. Are you after the folder properties that explorer.exe would display? Or, Display Properties like when you right-click and select "properties" on your actual desktop? This? ShellExecute("desk.cpl") This? ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE) Send("+{F10}r") Edited July 1, 2010 by Spiff59 Link to comment Share on other sites More sharing options...
Achilles Posted July 1, 2010 Author Share Posted July 1, 2010 This error message is from Vista, http://keys.wbfgv.net/Clipboard03.png. That's pretty much what Windows 7 says too.. thanks for checking I don't see how you can execute a path, there's nothing associated with it. Are you after the folder properties that explorer.exe would display? Or, Display Properties like when you right-click and select "properties" on your actual desktop? This? ShellExecute("desk.cpl") This? ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE) Send("+{F10}r") That last bit of code that you posted it was I was after.. thanks for that.. Here's what I'm using, I added sleeps 'cause it wasn't working due to everything happening too fast (although my computer is pretty good) ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE) Sleep(200) Send("+{F10}") Sleep(200) Send("r") Sleep(500) ControlSend('Desktop Properties', '', 12320, '^{TAB}') Sleep(200) ControlSend('Desktop Properties', '', 12320, '^{TAB}') Sleep(200) ControlSend('Desktop Properties', '', 12320, '^{TAB}') My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Achilles Posted July 1, 2010 Author Share Posted July 1, 2010 (edited) This error message is from Vista, http://keys.wbfgv.net/Clipboard03.png. That's pretty much what Windows 7 says too.. thanks for checking I don't see how you can execute a path, there's nothing associated with it. Are you after the folder properties that explorer.exe would display? Or, Display Properties like when you right-click and select "properties" on your actual desktop? This? ShellExecute("desk.cpl") This? ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE) Send("+{F10}r") That last bit of code that you posted it was I was after.. thanks for that.. Here's what I'm using, I added sleeps 'cause it wasn't working due to everything happening too fast (although my computer is pretty good) ShellExecuteWait("explorer.exe ", @DesktopDir, -1, "", @SW_HIDE) Sleep(200) Send("+{F10}") Sleep(200) Send("r") Sleep(500) ControlSend('Desktop Properties', '', 12320, '^{TAB}') Sleep(200) ControlSend('Desktop Properties', '', 12320, '^{TAB}') Sleep(200) ControlSend('Desktop Properties', '', 12320, '^{TAB}') Edit: Can anyone can see if this brings up the "Location" tab? Edited July 1, 2010 by Achilles My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Spiff59 Posted July 1, 2010 Share Posted July 1, 2010 (edited) This is probably the cleaner way to open the properties window. After that I suppose it's back to using Send() (or ControlSend()?)... $oShell32 = ObjCreate("Shell.Application") $oFolder = $oShell32.NameSpace(@DesktopDir) $oFolder.Self.InvokeVerb("Properties") Sleep(5000) $oFolder = "" $oShell32 = "" PS - In XP Pro SP3, I don't have a "Location" tab Edited July 1, 2010 by Spiff59 Link to comment Share on other sites More sharing options...
Achilles Posted July 1, 2010 Author Share Posted July 1, 2010 This is probably the cleaner way to open the properties window. After that I suppose it's back to using Send() (or ControlSend()?)... $oShell32 = ObjCreate("Shell.Application") $oFolder = $oShell32.NameSpace(@DesktopDir) $oFolder.Self.InvokeVerb("Properties") Sleep(5000) $oFolder = "" $oShell32 = "" PS - In XP Pro SP3, I don't have a "Location" tab Hmm, nice idea but it doesn't work in Windows 7.. It opens the "Personalize" window... which I don't think XP has.. I was hoping for a clean way to do this, but I don't seem to be having any luck.. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
E1M1 Posted July 1, 2010 Share Posted July 1, 2010 Can't you use controlclick or controlcommand? You could code 2 diferent funcs. one for win 7 and other for xp. edited Link to comment Share on other sites More sharing options...
Achilles Posted July 2, 2010 Author Share Posted July 2, 2010 Can't you use controlclick or controlcommand? You could code 2 diferent funcs. one for win 7 and other for xp.Unfortunately I don't this program is going to work at all for windows XP.. basically the plan is to make it like my Multiple Desktops.. but way better.. and with specific themes for each desktop..So... no ideas on how to open the properties of the desktop folder without using things like Send('F10')..? My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] 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