jslegers Posted August 16, 2006 Share Posted August 16, 2006 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 More sharing options...
Danny35d Posted August 16, 2006 Share Posted August 16, 2006 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 More sharing options...
jslegers Posted August 16, 2006 Author Share Posted August 16, 2006 Thanks for the help. Link to comment Share on other sites More sharing options...
lukeneo Posted August 16, 2006 Share Posted August 16, 2006 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 More sharing options...
Danny35d Posted August 16, 2006 Share Posted August 16, 2006 1. a function to copy files2.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 More sharing options...
mentosan Posted May 8, 2009 Share Posted May 8, 2009 If I insert this code into my script it will not work. It works only as stand-alone. Why ? Link to comment Share on other sites More sharing options...
oMBRa Posted May 8, 2009 Share Posted May 8, 2009 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now