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 / InetGet.au3 < prev    next >
Text File  |  2004-09-22  |  471b  |  15 lines

  1. InetGet("http://www.mozilla.org", "C:\foo.html")
  2. InetGet("http://www.autoitscript.com", "C:\mydownload.htm", 1)
  3. InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", "README.txt", 1)
  4.  
  5.  
  6. ; Advanced example - downloading in the background
  7. InetGet("http://www.nowhere.com/somelargefile.exe", "test.exe", 1, 1)
  8.  
  9. While @InetGetActive
  10.   TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
  11.   Sleep(250)
  12. Wend
  13.  
  14. MsgBox(0, "Bytes read", @InetGetBytesRead)
  15.