Jump to content
Sign in to follow this  
=sinister=

Inetget

Recommended Posts

=sinister=

im trying to check for errors in the INetGet command, trying to find out if it downloads or not.

InetGet($Scite, "C:\file.exe")
If @InetGetBytesRead = 0 Then
;Error
    EndIf

This code doesn't work, any suggestions?

Share this post


Link to post
Share on other sites
WSCPorts

Func InetGetBackGround($FileLoc, $szFileName)
Local $bSF = InetGet($FileLoc, $szFileName, 0, 1) ; boolean sucess/fail
While $bSF = 1 
If @InetGetActive then
  TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
  Sleep(250)
ElseIf @InetGetActive = 0 Then 
Return TrayTip("done", "Success =" & $bSF)
EndIf
Wend
EndFunc


http://www.myclanhosting.com/defiasVisit Join and contribute to a soon to be leader in Custumized tools development in [C# .Net 1.1 ~ 2.0/C/C++/MFC/AutoIt3/Masm32]

Share this post


Link to post
Share on other sites
=sinister=

Got it, thanks.

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  

×