Sign in to follow this  
Followers 0
igorm

FileOpenDialog with Allow MultiSelect?

4 posts in this topic

Hi.

I recently started to use AutoIt, so I'm still learning. So I need a little help.

I have FileOpenDialog with option 4 in my application. When I press button to execute something with some switch it will work only if one file is selected, but if I select in my application more then one files execution fill fail. Also execution of second file needs to wait for first to finish, third needs to wait until second is finished....

Can somebody help me with this please?

Thanks in advance for help.

Cheers :)

Share this post


Link to post
Share on other sites



Look at this example from the help file:

$message = "Hold down Ctrl or Shift to choose multiple files."

$var = FileOpenDialog($message, @WindowsDir & "\", "All Files (*.*)", 1 + 4 )

If @error Then
    MsgBox(4096,"","No File(s) chosen")
Else
    $var = StringReplace($var, "|", @CRLF) ; This replaces every pipe character to a new line, causing the files to split up..
    MsgBox(4096,"","You chose " & $var)
EndIf

This may help you understand that you have to change your script significantly to accept multiple files.

Share this post


Link to post
Share on other sites

Thanks for help, but I could not figure it out. I found another way to do this, but I have now other problem. Because it is not related to this topic I'll create new one.

Cheers :)

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