Sign in to follow this  
Followers 0
jslegers

Countdown Progress Bar

7 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thanks for the help.

Share this post


Link to post
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 ?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

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