Sign in to follow this  
Followers 0
Dr. Strangelove

Simple Download Progress Function

6 posts in this topic




#3 ·  Posted (edited)

The sytntax should have been the otherway around,

_download_progress("ftp://192.168.0.3/var/ftp/sefin/relatorios.zip",("01.zip")

but otherways its nice :)

Need to check your syntax there :(.

Edit:

And after looking at the function call, why do you say it's not right, looks like the correct "Parameter" positions to me.

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I keep getting an error message:

Line 55 (File "..\download_progress.au3"):

If $OK_download = 1 Then

If ^ ERROR

Error: Variable used without being declared.

Share this post


Link to post
Share on other sites

Need to check your syntax there :rolleyes:.

Edit:

And after looking at the function call, why do you say it's not right, looks like the correct "Parameter" positions to me.

I think he meant that it should be the same syntax like InetGet has...

And that "(" means its not a required parameter..

Share this post


Link to post
Share on other sites

Guys,

I apologize for I am not a seasoned AutoIt scriptwriter (or scriptwriter period). I'm just getting into writing scripts.

When I try to run a script and call on this function everything works fine except the progress bar doesn't move, every other statistic does.

I also get these errors:

C:\PROGRA~1\AutoIt3\Include\download_progress.au3(65,29) : WARNING: $time_inicio: possibly used before declaration.

$t = TimerDiff($time_inicio)

~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\PROGRA~1\AutoIt3\Include\download_progress.au3(102,46) : WARNING: $file_size_bytes: possibly used before declaration.

Return Round( (($iniDown/$file_size_bytes)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\PROGRA~1\AutoIt3\Include\download_progress.au3(65,29) : ERROR: $time_inicio: undeclared global variable.

$t = TimerDiff($time_inicio)

Can anyone help me with this? Thanks a bunch in advance.

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