linus Posted August 30, 2007 Share Posted August 30, 2007 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 ... Link to comment Share on other sites More sharing options...
JohnBailey Posted August 30, 2007 Share Posted August 30, 2007 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 More sharing options...
linus Posted August 31, 2007 Author Share Posted August 31, 2007 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 More sharing options...
JohnBailey Posted August 31, 2007 Share Posted August 31, 2007 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 More sharing options...
linus Posted August 31, 2007 Author Share Posted August 31, 2007 What about something like this?Hm. Very simple. And useable. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now