AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FileSelectFolder cannot create new folders

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
icefire



Joined: 17 Jun 2004
Posts: 4

PostPosted: Thu Jun 17, 2004 5:38 pm    Post subject: FileSelectFolder cannot create new folders Reply with quote

FileSelectFolder does not seem to allow me to create new folders, regardless of the value of the Options parameter.
FileSelectFolder, MyFolder
FileSelectFolder, MyFolder, , 0
FileSelectFolder, MyFolder, , 1

each give exactly the same dialog box, with only a facility to choose a folder but not create one.

FileSelectFolder, OutputVar, , 2
FileSelectFolder, OutputVar, , 3

each give exactly the same dialog box but have a space to type an existing folder name.

FileSelectFolder, MyFolder, , 5 is correctly rejected with a message saying that only 0, 1, 2 or 3 are valid

FileSelectFile seems to work properly, however.

I am on Windows98SE using version 1.0.13
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Jun 17, 2004 6:02 pm    Post subject: Reply with quote

The button is absent on my Win98SE system as well. I checked MSDN and it seems likely that Windows XP+ and MSIE 6.x+ are required, though it's possible it will work on Win2k.

I've updated the help file to reflect this. Sorry for the oversight.
Back to top
View user's profile Send private message Send e-mail
icefire



Joined: 17 Jun 2004
Posts: 4

PostPosted: Thu Jun 17, 2004 6:43 pm    Post subject: Reply with quote

Thank you for the quick reply. It confirms it wasn't just me missing something. I have been able to use the following workaround to use FileSelectFile to create a new folder:

FileSelectFile, MyFolder, 0, C:\My Documents, Select / create Folder. Input dummy filename.
Loop, Parse, MyFolder, \
{
MySubString = %A_LoopField%
}
StringReplace, MyFolder, MyFolder, \%MySubString%

The result of that is that the MyFolder variable contains just the folder name (without a trailing \) of the new folder created by the FileSelectFile dialog.

By the way, I think AutoHotkey is a most amazing piece of software. Powerful and superb.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group