Sign in to follow this  
Followers 0
NeuroToxic

Problem with InetGet() function

2 posts in this topic

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")

Share this post


Link to post
Share on other sites



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]

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  
Followers 0