Jump to content
Sign in to follow this  

How to start a download...

Recommended Posts


What am I doing wrong here, The IE thingy keeps spinning meaning not done yet so it will not continue to allow me to push the button to download the file.. The File Download box comes up but of course it cannot be recoginzed as the browser thinks its not done yet... I tried remarking out the WinWait but makes no difference.

I added the mouse move just to see if it was making it that far and it is not.. The browser thinks its still busy...

If I manually press the Save button all is well but the program is stuck at the beginning.

$oIE = _IECreate("http://www.mydomain.com/sugarbabe/LeadExport3.xls")
_IELoadWait ($oIE)
WinWait("File Download", "")

Thanks for any advice..

Share this post

Link to post
Share on other sites

You might want to try InetGet here is a section I pulled from the help file

InetGet("http://www.mozilla.org", @TempDir & "\mozilla.html")
InetGet("http://www.autoitscript.com", @TempDir & "autoitscript.html", 1)
InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", @TempDir & "\Mozilla-README.txt", 1)

; Advanced example - downloading in the background
Local $hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", @TempDir & "\update.dat", 1, 1)
Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload) ; Close the handle to release resourcs.
MsgBox(0, "", "Bytes read: " & $nBytes)

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Share this post

Link to post
Share on other sites

Thanks that looks interesting... probably never would have come across it..

In the back ground would be nice, as I want to automate it to visit a site each 24 hours and wait while an xml file is assembled by going thru the data base.. then down load the xml file...

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.