Modify

Opened 15 years ago

Closed 15 years ago

#1209 closed Feature Request (Rejected)

FileOpenDialog will not allow you to specify a folder

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

I could like FileOpenDialog to have the capability of selecting an existing folder or creating one.

the user's only hope currently is if they happen to know they path they want and can type it in with a \ at the end. how are they going to know that? it's not in the dialog! and most users don't know the path to anything anyway. so it's almost a useless feature except to the programmer type who knows autoit3.

best to make things as simple as possible. people often tell me that they do not know where their downloaded files go.

obviously, this is a file dialog. but I need something that will let me specify a folder.
is there something you can do? I tried

$var2=RegRead ( "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
$var = FileOpenDialog ( "Get Folder to Process", "c:\users\"&$var2&"\My Documents\", "All(*.*)" , 2 )

but the 2 just isn't doing it. I dare not use 1 because I don't want a file to feed to my program zapdupes, since it only processes directories.

BTW, here is a chunk of code that would be a useful script to include in your collection:

Select
Case "WIN_NT4"==@OSVersion

$var2=RegRead ( "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
$var = FileOpenDialog ( "Get Folder to Process", "c:\users\"&$var2&"\", "All(*.*)" , 2 )

Case "WIN_95"==@OSVersion

$var = FileOpenDialog ( "Get Folder to Process", "c:\My Documents", "All(*.*)" , 2 )

Case "WIN_98"==@OSVersion

$var = FileOpenDialog ( "Get Folder to Process", "c:\My Documents", "All(*.*)" , 2 )

Case "WIN_ME"==@OSVersion

$var = FileOpenDialog ( "Get Folder to Process", "c:\My Documents", "All(*.*)" , 2 )

Case "WIN_2000"==@OSVersion

$var2=RegRead ( "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
$var = FileOpenDialog ( "Get Folder to Process", "c:\documents and settings\"&$var2&"\My Documents\", "All(*.*)" , 2 )

Case "WIN_XP"==@OSVersion

$var2=RegRead ( "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
$var = FileOpenDialog ( "Get Folder to Process", "c:\documents and settings\"&$var2&"\My Documents\", "All(*.*)" , 2 )

Case "WIN_2003"==@OSVersion

$var2=RegRead ( "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
$var = FileOpenDialog ( "Get Folder to Process", "c:\documents and settings\"&$var2&"\My Documents\", "All(*.*)" , 2 )

Case "WIN_VISTA"==@OSVersion

$var2=RegRead ( "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
$var = FileOpenDialog ( "Get Folder to Process", "c:\users\"&$var2&"\My Documents\", "All(*.*)" , 2 )

Case "WIN_7"==@OSVersion

$var2=RegRead ( "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
$var = FileOpenDialog ( "Get Folder to Process", "c:\users\"&$var2&"\My Documents\", "All(*.*)" , 2 )

Case Else

$var2=RegRead ( "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
$var = FileOpenDialog ( "Get Folder to Process", "c:\users\"&$var2&"\My Documents\", "All(*.*)" , 2 )

EndSelect
If @error == 1 Then

$filepath=""

EndIf

Attachments (0)

Change History (4)

comment:1 Changed 15 years ago by jmichae3@…

wanted to leave a comment with my email in it. I wrote the feature request.

comment:2 Changed 15 years ago by jmichae3@…

after some testing with the existing FileOpenDialog, not even typing in a path with a \ on the end works, as is stated in the documentation. the dialog stays open with the "Open" button stuck in a loop.

comment:3 Changed 15 years ago by TicketCleanup

  • Version 3.3.0.0 deleted

Automatic ticket cleanup.

comment:4 Changed 15 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

I guess FileSelectFolder() is too easy? But thanks for wasting time asking us for features that have been in the language for years!

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.