au3scr Posted October 12, 2007 Share Posted October 12, 2007 How i make script that download specific file with out usinb browsers? Link to comment Share on other sites More sharing options...
tankmann Posted October 12, 2007 Share Posted October 12, 2007 Search the AutoIt helpfile for InetGet Link to comment Share on other sites More sharing options...
myself Posted October 12, 2007 Share Posted October 12, 2007 try use function InetGet ( "URL" [,"filename" [, reload [, background]]] ) more in AutoIt3.chm or somewhere else Link to comment Share on other sites More sharing options...
au3scr Posted October 12, 2007 Author Share Posted October 12, 2007 thanks alot Link to comment Share on other sites More sharing options...
au3scr Posted October 12, 2007 Author Share Posted October 12, 2007 but i dont download file fully InetGet("http://autoit.pri.ee/downloads/", "Notepad2.exe", 1, 1) While @InetGetActive TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16) Sleep(250) Wend MsgBox(0, "Bytes read", @InetGetBytesRead) Link to comment Share on other sites More sharing options...
baghenamoth Posted October 18, 2007 Share Posted October 18, 2007 well, I guess you want to download notepad2.exe, so you have to specify the full url of the file : InetGet("http://autoit.pri.ee/downloads/Notepad2.exe", "Notepad2.exe", 1, 1) While @InetGetActive TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16) Sleep(250) Wend MsgBox(0, "Bytes read", @InetGetBytesRead) your code below has simply downloaded the page http://autoit.pri.ee/downloads/, even if you specified to record it under Notepad2.exe try to rename your Notepad2.exe to Notepad2.html and launch it, you will see... but i dont download file fully InetGet("http://autoit.pri.ee/downloads/", "Notepad2.exe", 1, 1) While @InetGetActive TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16) Sleep(250) Wend MsgBox(0, "Bytes read", @InetGetBytesRead) Link to comment Share on other sites More sharing options...
Madza91 Posted October 18, 2007 Share Posted October 18, 2007 (edited) Hi, InetGet("http://autoit.pri.ee/downloads/Notepad2.exe", "Notepad2.exe", 1, 1) While @InetGetActive TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16) Sleep(250) Wend MsgBox(0, "Bytes read", @InetGetBytesRead) Edited September 8, 2008 by n3nE [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
au3scr Posted October 18, 2007 Author Share Posted October 18, 2007 thanks a lot for help 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