mary Posted August 5, 2007 Share Posted August 5, 2007 I know that there is many solutions to download file (InetGetsource, or other activex or command line tools...)My queston is only about Internet Explorer. i.e how we can download file with IE without the SaveAs dialog box ?thinks a lot Link to comment Share on other sites More sharing options...
tAKTelapis Posted August 6, 2007 Share Posted August 6, 2007 I get the impression you are talking about someone clicking on a link and the file just going directly to there computer.. with no prompts etc.? If so, thats not going to happen. Link to comment Share on other sites More sharing options...
Gif Posted August 6, 2007 Share Posted August 6, 2007 (edited) That comes up with something similar: #include<IE.au3> $ie = _IECreate('http://www.autoitscript.com', 0, 0, 1, -1) $doc = _IEBodyReadText($ie) FileWrite(@DesktopDir &"\file.txt", $doc) Exit thinks a lotthink you very much EDIT: actually that works Edited August 6, 2007 by Gif Link to comment Share on other sites More sharing options...
mary Posted August 8, 2007 Author Share Posted August 8, 2007 That comes up with something similar: #include<IE.au3> $ie = _IECreate('http://www.autoitscript.com', 0, 0, 1, -1) $doc = _IEBodyReadText($ie) FileWrite(@DesktopDir &"\file.txt", $doc) Exit think you very much EDIT: actually that works Sorry this works only if you want to download the html source code but it did not work for binary files like *.jpg or .zip ...etc Link to comment Share on other sites More sharing options...
Gif Posted August 8, 2007 Share Posted August 8, 2007 (edited) Sorry this works only if you want to download the html source code but it did not work for binary files like *.jpg or .zip ...etc if you want to download a file from a url use INetGet() like: INetGet('http://www.autoitscript.com/images/autoit_6_240x100.jpg', @desktopdir &'\autoit logo.jpg') Exit also look here for another way Edited August 8, 2007 by Gif 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