Jump to content

Countdown Progress Bar


Recommended Posts

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

Link to comment
Share on other sites

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()
AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

  • 2 years later...

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