Keep the sleep(5) and and add an optional test counter.

Wait.for(n, expression, cnt)

for (1)
check for other PowerPro messages and process them (eg button click)

IF(NOT i%cnt)DO
if (wait expression is true) 
break
i= 0
ENDFOR

if (wait time is over) 
break

sleep (5 ms)
i= i+ 1
endfor


Hope all's well with your files,

Ted


--- In [email protected], "brucexs" wrote:
>
> > If there was something like:
> > Wait.for(n,expression[,n])
> > 
> > Where the second n says evaluate expression every x ms that would 
> let you do
> 
> 
> This is basically how wait until works with one second waits.  It 
> won't work for wait.for because of the way wait.for works, which is 
> essentially:
> 
> for (1)
> check for other PowerPro messages and process them (eg button click)
> if (wait condition is true) 
> break
> sleep (5 ms)
> endfor
> 
> It does not work without the sleep and if the sleep becomes >20-
> 50ms, PowerPro becomes unresponsive, since it does nothing while 
> sleeping.
>






Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to