=sinister= Posted March 18, 2006 Share Posted March 18, 2006 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? Link to comment Share on other sites More sharing options...
WSCPorts Posted March 18, 2006 Share Posted March 18, 2006 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] Link to comment Share on other sites More sharing options...
=sinister= Posted March 18, 2006 Author Share Posted March 18, 2006 Got it, thanks. 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