Jump to content
Sign in to follow this  
igorm

FileOpenDialog with Allow MultiSelect?

Recommended Posts

igorm

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
jvanegmond

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.