home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / FileOpenDialog.au3 < prev    next >
Text File  |  2004-09-22  |  294b  |  11 lines

  1. $message = "Hold down Ctrl or Shift to choose multiple files."
  2.  
  3. $var = FileOpenDialog($message, "C:\Windows\", "Images (*.jpg;*.bmp)", 1 + 4 )
  4.  
  5. If @error Then
  6.     MsgBox(4096,"","No File(s) chosen")
  7. Else
  8.     $var = StringReplace($var, "|", @CRLF)
  9.     MsgBox(4096,"","You chose " & $var)
  10. EndIf
  11.