Jump to content
Sign in to follow this  
linus

Check for progress bar

Recommended Posts

linus

Hello,

is there a simple way to check for a running progress bar? I have a function for handling the bar and it would be nice just to update it if it's allready there ...

Share this post


Link to post
Share on other sites
JohnBailey

Hello,

is there a simple way to check for a running progress bar? I have a function for handling the bar and it would be nice just to update it if it's allready there ...

Is the progress bar developed by you or someone else?


A decision is a powerful thing

Share this post


Link to post
Share on other sites
linus

Is the progress bar developed by you or someone else?

Sorry - maybe I wasn't precise enough ... I mean the standard bar of AU - and I would like to have something like

func FOO($iPercent, [stringsForTheProgressBarAndSoOn])

if NOT [progressBarAllreadyActive] then ProgressBarOn(...)

progressSet($iPercent, ...)

endfunc ; FOO

Share this post


Link to post
Share on other sites
JohnBailey

What about something like this?

Local $pTitle = 'Progress Bar Title'
ProgressOn($pTitle,'Example','Let us start...')
For $i = 1 to 100
    FOO($i, $pTitle)
Next
ProgressOff()

func FOO($iPercent, $foo_pbarTitle)

    If WinExists($foo_pbarTitle) = 0 Then
        ProgressOn($pTitle,'Example','Let us start...')
    EndIf
    
    ProgressSet($i,$i&'% percent')
    Sleep(1000) 
endfunc; FOO

A decision is a powerful thing

Share this post


Link to post
Share on other sites
linus

What about something like this?

Hm. Very simple. And useable. Thanks!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.