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 / FileSaveDialog.au3 < prev    next >
Text File  |  2004-09-22  |  312b  |  11 lines

  1. $MyDocsFolder = "::{450D8FBA-AD25-11D0-98A8-0800361B1103}"
  2.  
  3. $var = FileSaveDialog( "Choose a name.", $MyDocsFolder, "Scripts (*.aut;*.au3)", 3)
  4. ; option 3 = dialog remains until valid path/file selected
  5.  
  6. If @error Then
  7.     MsgBox(4096,"","Save cancelled.")
  8. Else
  9.     MsgBox(4096,"","You chose " & $var)
  10. EndIf
  11.