Sign in to follow this  
Followers 0
YoseMite

download %

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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 ...

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