Sign in to follow this  
Followers 0
Danny35d

OpenFolderFileDialog

4 posts in this topic

I search AutoIt v3.2.0.1 help file and forum. I couldn't find anything about OpenFileDialog in which allow me multi select files, folders or both. I decide to make my own function _OpenFileFolderDialog($sTitle, $sMsg, $iFoldersOnly = 0, $iParent = '') still need some work, but it is almost there. What I can figure out is how to create an array with the selected check boxes.

Thanks to Holger (Tristate GUI TreeView) and Randallc (AutoIt3Ex.au3)

Basically I combine the two script.

Unzip and run Example.au3

Thanks in advance...


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites



I'm guessing you still have no solution for this? I have actually been looking for something like this myself...

Thanks,

Max

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Danny35d : I've finished your work !!!!

Now _OpenFolderFileDialog() return an array with the selected files/folder

I'm currently working to debug it. I'll post it when debuging will be done :)

Edited by taz742

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

_OpenFileFolderDialog($sTitle, $sMsg, $iFoldersOnly = 0, $iParent = '')

Retrun an array of selected TreeViewItems in function of $iFoldersOnly

$iFoldersOnly = -1 >> Display Files & Folders but return only files

$iFoldersOnly = 0 (Default) >> Display Files & Folders and return both

$iFoldersOnly = 1 >> Display Folders Only and return folders

_OpenFolderFileDialog.v2.rar

Edit:

Fixed: 2nd level tree folder wasn't returned in array.

_OpenFolderFileDialog.v2.2.rar

Edited by taz742

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