Jump to content

Simple Download Progress Function


Recommended Posts

  • Moderators

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

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.

Link to comment
Share on other sites

  • 1 year later...

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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

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