Bearpocalypse Posted March 25, 2014 Share Posted March 25, 2014 (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 March 25, 2014 by Bearpocalypse Link to comment Share on other sites More sharing options...
Bert Posted March 25, 2014 Share Posted March 25, 2014 Look at my vollatran project in my sig. That shows you how to do it The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
czardas Posted March 25, 2014 Share Posted March 25, 2014 (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 March 25, 2014 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Bearpocalypse Posted March 25, 2014 Author Share Posted March 25, 2014 Look at my vollatran project in my sig. That shows you how to do it Will do. Many thanks! Link to comment Share on other sites More sharing options...
NewPlaza Posted March 26, 2014 Share Posted March 26, 2014 If you know the size of data being installed for each installer then you could make a more accurate progress bar. 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