Jump to content

Recommended Posts

Posted

Ey,

I have a file on the web, and I download this with my AutoIT application.

(InetGet() function)

No problem, but I want a script that you can see the %.

With GuiCtrlCreateProgress().

How can I make this?

(Sorry for bad English)

YoseMite

Posted

Read in the helpfile about the macros:

@InetGetActive = 1 while downloading, or 0 when finished.

@InetGetBytesRead = the number of bytes downloaded, or -1 if there has been an error.

(There is some examples in the forum too, sorry, I can't remember...)

Posted

And here is VERY SIMPLE example about princip of use Inetget on background:

$size = InetGetSize('file on www')
Inetget('file on www', 'file on disk', 0, 1)
While @InetGetActive
    GUICtrlSetData ($status, Int(@InetGetBytesRead / $size * 100) & "%")
    Sleep(500)
Wend

But this is also in Helpfile in example to InetGet ...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...