Jump to content

Recommended Posts

Posted

Hi,

I want to make a countdown progress bar. I have tried the progress example in the help file.

ProgressOn("Progress Meter", "Time till shutdown PC", "60 seconds")
For $i = 60 to 1 step -1
    sleep(1000)
    ProgressSet( $i, $i & " seconds")
Next
ProgressSet(100 , "Done", "Complete")
sleep(500)
ProgressOff()

I'm trying to make a count down progressbar of 60 seconds. How can I make the bar have a scale of 60 instead of 100 ?

John

Posted

ProgressSet( Int(($i/60)*100), $i & " seconds")

ProgressOn("Progress Meter", "Time till shutdown PC", "60 seconds")
For $i = 60 to 1 step -1
    sleep(1000)
    ProgressSet( Int(($i/60)*100), $i & " seconds")
Next
ProgressSet(100 , "Done", "Complete")
sleep(500)
ProgressOff()

1. a function to copy files

2.Progress bar start

3.progress bar stops when the function copy file is completed ....

is there working examples here in the forum ?

Posted

1. a function to copy files

2.Progress bar start

3.progress bar stops when the function copy file is completed ....

is there working examples here in the forum ?

If you are looking for a UDF to copy a file and show progress bar, take a look to this post from eltorro
AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
  • 2 years later...
Posted

If I insert this code into my script it will not work. It works only as stand-alone. Why ?

you exactly copied that example and put it in your script?

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