Jump to content

FileOpenDialog with Allow MultiSelect?


igorm
 Share

Recommended Posts

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 :)

Link to comment
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.

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...