NeuroToxic Posted December 29, 2007 Share Posted December 29, 2007 Hi all. Sorry for my bad english, I'am french. I have a problem with the function InetGet(), the file is downloaded, but to 99%, the download stops and only after many seconds the file is completly downloaded. As if InetGet() block, and then resumed later. I don't know if it comes from me or it is a bug. Can you help me ? Here's the code: $File="http://www.autoitscript.com/autoit3/files/beta/autoit/autoit-v3.2.10.0-rc-setup.exe" $size = InetGetSize($File) ProgressOn ( "Downloading " & $File, "0% downloaded" , $size & " bytes remaining" ) InetGet($File,@DesktopDir & "\autoit-v3.2.10.0-rc-setup.exe",1,1) While @InetGetActive $Percent=Int((@InetGetBytesRead*100)/$size) $Remain=$size-@InetGetBytesRead ProgressSet( $Percent,$Remain & " bytes remaining", $Percent & "% downloaded") Sleep(100) WEnd ProgressOff() MsgBox(0,"Download complete",@DesktopDir & "\autoit-v3.2.10.0-rc-setup.exe") Link to comment Share on other sites More sharing options...
herewasplato Posted December 29, 2007 Share Posted December 29, 2007 I ran it a couple of times and it worked for me just fine. No delays. I'm not sure, but maybe your antivirus software is checking the file at that point??? [size="1"][font="Arial"].[u].[/u][/font][/size] 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