Jump to content

Check for progress bar


linus
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...