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 / GUISetIcon.au3 < prev    next >
Text File  |  2005-01-07  |  354b  |  16 lines

  1. #include <GUIConstants.au3>
  2.  
  3. GUICreate ("My GUI new icon")  ; will create a dialog box that when displayed is centered
  4.  
  5. GUISetIcon ("autosave.ico")  ; will change icon
  6.  
  7. GUISetState ( ); will display an empty dialog box
  8.  
  9. ; Run the GUI until the dialog is closed
  10. While 1
  11.     $msg = GUIGetMsg()
  12.     
  13.     If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  14. Wend
  15.  
  16.