Jump to content

Could someone explain how this works


Recommended Posts

I know you can use Progress Meter and have it show when something is done but I don't understand how to use it with something that is running and use the Progress Meter .

Show me in simple terms if you can please ,

ProgressOn("Progress Meter", "Increments every second", "0 percent")

For $i = 10 to 100 step 10

sleep(1000)

ProgressSet( $i, $i & " percent")

Next

ProgressSet(100 , "Done", "Complete")

sleep(500)

ProgressOff()

Link to comment
Share on other sites

The best example of a Progress Meter is JdeB's "Tidy" script. Search the "Scripts and Scraps" forum; it is also available in the SciTE 1.60 thread.

If you use a lot of FileMove's or FileCopy's, then you can use a update the progress meter after each file (or after a certain number of kilobytes is processed--if you know the total in advance).

I don't think Progress Meter can easily be used to track the progress of an external event very easily; only internal functions that you call.

Hope that helps

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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...