A different kind of progress bar

Recommended Posts

Andrew Sparkes 0

Andrew Sparkes 0

Okay, where to start... I have a program runs and takes anywhere from 5-20 minutes... I want there to be a progress bar on the screen. look at this ... Think animations...

Frame 1: loading

Frame 2: loading.

Frame 3: loading..

Frame 4: loading...

Repeat

I don't know how many things my program must process, so I can't use the Progress bar functions. I also don't want to have more than one file... I could probably do this easily with an animated GIF, but there must be a way to have the loading text running while my program does its thing. Any insight, autoit gurus?

---Sparkes.

Share this post

Link to post

Share on other sites

GodandRock 0

GodandRock 0

ok i kinda dont get u but i think ur trying to put a "loading" animation in a GUI....wat u want to do is make an animation in GIF first....then u convert that into .avi format....then u read the help file on how to put .avi animations in a GUI....if u need help on ne of these steps, ask me....im just giving u the basic info on how to do wat u want, but im not giving step by step procedure....

Share this post

Link to post

Share on other sites

Andrew Sparkes 0

Andrew Sparkes 0

I could do that very easily, but I want it to be in one file. I don't want to have the script and another file... I just want it in the script, no avi or gif along with it.... Just changing a GUI label or something ... I don't want an avi alongside it...

Share this post

Link to post

Share on other sites

Andrew Sparkes 0

Andrew Sparkes 0

I did not know that avis were embedded. Interesting. Can autoit multithread? like have two functions run at the same time? Like have that run as a progress indicator and have the actual function running in background? I guess I could compile the progress bar and use a run command to load it and a process kill function to kill it, but it would be much easier if I could just have one script doing two or more things at the same time.... I will do some tinkering with it today. I know that it can be doing one function and if a hotkey is pressed, the linked function will run, but are they both at the same time? or is one paused?

Share this post

Link to post

Share on other sites

SmOke_N 199

SmOke_N 199

I did not know that avis were embedded. Interesting. Can autoit multithread?

No... but take a look at AdlibEnable() in the help file.

like have two functions run at the same time? Like have that run as a progress indicator and have the actual function running in background? I guess I could compile the progress bar and use a run command to load it and a process kill function to kill it, but it would be much easier if I could just have one script doing two or more things at the same time.... I will do some tinkering with it today. I know that it can be doing one function and if a hotkey is pressed, the linked function will run, but are they both at the same time? or is one paused?

With using splash as I think was suggested, and adlibenable(), you may be able to accomplish what your looking for.

Granted it does interfere with the time it would take to run the actual script in the background... The other option is as you said, is running 2 at the same time.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

your post does not add anything of value to the conversation. If you're going to troll someone's code by saying how ugly it is, you might have the common courtesy to offer a better alternative. Something that's so good that we wouldnt question your insulting attitude.

Thanks for participating, next time try being constructive.

Edited December 18, 2005 by blademonkey

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Share this post

Link to post

Share on other sites

Valuater 107

Valuater 107

your post does not add anything of value to the conversation. If you're going to troll someone's code by saying how ugly it is, you might have the common courtesy to offer a better alternative. Something that's so good that we wouldnt question your insulting attitude.

Share this post

Link to post

Share on other sites

MrSpacely 1

MrSpacely 1

your post does not add anything of value to the conversation. If you're going to troll someone's code by saying how ugly it is, you might have the common courtesy to offer a better alternative. Something that's so good that we wouldnt question your insulting attitude.

Share this post

Link to post

Share on other sites

GodandRock 0

GodandRock 0

bout that embedded function thing, u can use "AdlibEnable()" function....this is an embedded function...but while it runs, it PAUSES the script...u can change the time between each adlib call...i suggest u keep the adlib function short so that the rest of the script can run too...so calling it ever 1 second should be fine and with a short function, it wouldnt pause the script for long and i think it wouldnt take much cpu load either....also, u can exit the adlib by using "AdlibDisable()" function....

Like, in this code, ive set the script to encrypt some data, and to run a progress bar at the same time as the encryption. About how the progressbar is going to run, it will be based on a variable calculated by the amount of data to be encrypted etc. But to get it to run during the encryption...i cant do it...