Jump to content

FileSelectFolder default?


Recommended Posts

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!
Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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?
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...