Jump to content

Progress bar spanning multiple functions and installers


Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...