View Full Version : ProgressBar/Scrolling Text Progress and a Shell program
amaazouz
06-16-2009, 01:35 PM
Hello,
I was wondering if it's possible to use and update a ProgressBar or a Scrolling Text Progress with a shell program (Shell.Execute).
Thanks,
Abdessamad
amaazouz
06-16-2009, 02:16 PM
What I'm needing is to call a shell script (before patching) from a new screen having a Progress bar (cz my script takes several minutes).
Is that possible?
Thanks
jassing
06-16-2009, 06:27 PM
Your best bet is to have whatever you're running display a progress bar.
however, if you want VP to do something, you'll need to do a File.Run() and NOT WAIT for it to complete; then your VP lua code can scan processes, and display "still working!' or something until it sense that your spawned process has completed.
-josh
ps: It's best not to reply to your own messages -- most of the time, I (and others) just scan forums for messages w/ no responses...
amaazouz
06-17-2009, 08:23 AM
:yes
Thanks Jassing.
I looped on the g_IsProcessRunning() function using an Application.wait() to update the Progressbar, and it worked perfectly.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.