CyberSlug Posted July 25, 2005 Share Posted July 25, 2005 (edited) FileSelectFolder will not let me select the Desktop as the inital directory... it keeps insisting on using "My Computer" as the initially selected directory. I've tried: FileSelectFolder ( "Foo", "", 0, "::{FD4DF9E0-E3DE-11CE-BFCF-ABCD1DE12345}") FileSelectFolder ( "Foo", "", 0, "") I do not want to use @DesktopDir for aesthetic reasons. Solution? Screenshot of what I want: Edited July 25, 2005 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
herewasplato Posted August 3, 2005 Share Posted August 3, 2005 I spent some time on this the day that you posted it - I could not find a way to get what you want. Did you give up? [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valuater Posted August 3, 2005 Share Posted August 3, 2005 I spent some time on this the day that you posted it - I could not find a way to get what you want. Did you give up?<{POST_SNAPBACK}>same here and..... nothingeven... (i know you don't want this)FileSelectFolder ( "Foo", @DesktopDir, 0, "")doesn't work correctly. i only get the desktop and no tree???8)PS noticed alot of "drives" on your pc... WOW! 8) Link to comment Share on other sites More sharing options...
this-is-me Posted August 3, 2005 Share Posted August 3, 2005 The actual CLSID for the desktop is ::{00021400-0000-0000-C000-000000000046} according to http://www.virtualplastic.net/html/misc_cut.htmlHowever, even that does not do the function you need. Who else would I be? Link to comment Share on other sites More sharing options...
this-is-me Posted August 3, 2005 Share Posted August 3, 2005 (edited) I just coded a "workaround" script that should allow you to have the desktop selected. This script must be COMPILED to function. AdlibEnable("adlib") $open = 1 $caught = "" $ret = RunWait(@ScriptFullPath & " /c ""MsgBox(0,'CatchMe',FileSelectFolder( 'Foo', '', 0, ''))""") If $caught <> "" Then MsgBox(0, "Caught It!", $caught) EndIf AdlibDisable() Func adlib() If BitAND(WinGetState("Browse for Folder", "Foo"), 2) Then If Not $open Then ControlFocus("Browse for Folder", "Foo", "SysTreeView321") Send("{HOME}") $open = 1 EndIf Else $open = 0 EndIf If WinExists("CatchMe") Then $caught = ControlGetText("CatchMe", "", "Static1") ControlClick("CatchMe", "", "OK") EndIf EndFunc Thanks for the original "jump out of the box, run down the street" Idea from Valik. Edited August 3, 2005 by this-is-me Who else would I be? 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