WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: naholt on July 11, 2015, 07:08:10 AM

Poll
Question: how do you make a progress ciount down instead of up
Option 1: dont know votes: 0
Option 2: dont kn9ow votes: 0
Title: progress bar that decreaes one increment at a time.
Post by: naholt on July 11, 2015, 07:08:10 AM
I am looking for a way to make a progress bar count down instead of counting up.  I got the following script off of the help and was wondering if its possible to make it count down.

AddExtender("wwsop34i.DLL")
astatusbar(0,"This is the title","This is the initial text",60,30)
for xx = 1 to 60
;This timedelay would be replaced by your code
timedelay(1)   
astatusbar(1,xx,"Processing file number %xx% of 79",79,xx)
next

Message("All","Done")

Thanks Nicholas
Title: Re: progress bar that decreaes one increment at a time.
Post by: JTaylor on July 11, 2015, 11:48:43 AM
You mean something like:

Code (winbatch) Select


AddExtender("wwsop34i.DLL")
astatusbar(0,"This is the title","This is the initial text",60,30)
For xx = 60 to 1 by -1
  ;This timedelay would be replaced by your code
  TimeDelay(.2)   
  aStatusbar(1,xx,"Processing file number %xx% of 79",79,xx)
Next

Message("All","Done")
Title: Re: progress bar that decreaes one increment at a time.
Post by: naholt on July 14, 2015, 02:12:57 PM
that's it, thank you very much
Nicholas