Sign in to follow this  
Followers 0
CyberSlug

FileSelectFolder default?

5 posts in this topic

#1 ·  Posted (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 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!

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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..... nothing

even... (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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

The actual CLSID for the desktop is ::{00021400-0000-0000-C000-000000000046} according to http://www.virtualplastic.net/html/misc_cut.html

However, even that does not do the function you need.


Who else would I be?

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by this-is-me

Who else would I be?

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  
Followers 0