igorm Posted September 26, 2007 Share Posted September 26, 2007 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 Office 2000/XP/2003/2007 Slipstreamer Link to comment Share on other sites More sharing options...
jvanegmond Posted September 26, 2007 Share Posted September 26, 2007 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. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 26, 2007 Moderators Share Posted September 26, 2007 http://www.autoitscript.com/forum/index.ph...st&p=293524 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
igorm Posted September 26, 2007 Author Share Posted September 26, 2007 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 Office 2000/XP/2003/2007 Slipstreamer Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now