Sign in to follow this  
Followers 0
Bearpocalypse

Progress bar spanning multiple functions and installers

5 posts in this topic

#1 ·  Posted (edited)

I have a script that runs some automated installs from four functions. I was wondering if AutoIt was able to create a progress bar to accurately show the progress of the installs together. I've got the progress bar and after each function for the installer finishes, I use GUICtrlSetData($iProgress, %done) to update the bar. Below is just an example of what I'm talking about. Any help would be greatly appreciated. I was unsure if this is possible, but it never hurts to ask.

Func _Func1()

$iProgress = GUICtrlCreateProgress(1,1,1,1)

;Insert possible progress code here.

_Install1

_Insteall2

_Install3

_Install4

EndFunc 
Edited by Bearpocalypse

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Perhaps stating the obvious: without running and timing each function's progress, there is no way to code for smooth progress. If you can get a reliable average time difference ratio between all the functions, then you can set the status bar to run smoothly from the start to finish. You need to calculate the percentages of the whole duration for each function.

Edited by czardas

Share this post


Link to post
Share on other sites

Look at my vollatran project in my sig. That shows you how to do it

Will do. Many thanks!

Share this post


Link to post
Share on other sites

If you know the size of data being installed for each installer then you could make a more accurate progress bar.

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