Sign in to follow this  
Followers 0
403forbidden

progress bar...

9 posts in this topic

...I have a program that i wrote in auto it. It installs programs automatically using au3recorder. I have an option to extract the installers that i include with the program once it is compiled, and have a progress bar to show the, well, progress of the extraction. I can't figure out how to make the progress bar be smooth. Currently, i do the FileInstall command to extract the installer, but i can't set data to the progress bar while the installer is extracting. What i am doing right now to make the progress bar appear as smooth as possible, is getting the size of the file that my program is going to extract, and use that to make the progress bar go to 50% at a rate proportional to the size of the file, and then i extract the file. Then i use the same command to have the progress bar go the rest of the way, from 50% to 100%. The problem is that at 50%, it freezes because it is extracting the installer. Is there any way to have the script continue while the installer is being extracted so i can run a command that, for instance, gets the current size of the file until the file is finished transferring and sets the progress bar based on the current size of that file?

Sorry that was so long, and thank you,

403forbidden

Share this post


Link to post
Share on other sites



lol forbidden...

It's possible to do it via AdlibEnable or using the API function ReadFileEx with a completion routine if applicable.

Share this post


Link to post
Share on other sites

How would the adlibenable function work, sorry, a bit of a noob.

Share this post


Link to post
Share on other sites

The help file helps much better than I do, but I'll drop some note because I've been corrected about a naive thought...

AdlibEnable does call your function even if your script is suspended.

Share this post


Link to post
Share on other sites

If you are saying that it is impossible, thats ok, thanks for the help.

Share this post


Link to post
Share on other sites

chuck up the file, got it.

Share this post


Link to post
Share on other sites

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