--- In [email protected], Sue Chastain <[EMAIL PROTECTED]> wrote:
> On 5/9/05, brucexs <[EMAIL PROTECTED]> wrote:
> > Does the script work with the wait for removed?  If so, try running
> > with out it.
> > 
> > I am guessing that if another windows event occurs while a script run
> > from a hook is waiting, then PowerPro fails.  That would explain
> > intermittent failure.
> 
> It doesn't work properly without the wait, but I changed the wait to 1
> instead of 50 and it still works, so we'll see if that makes any
> difference.
> 
> Nifty little toggle trick, too. Thanks.
> 
> -- 
> 
> Sue Chastain

I had a HookWindowEvents screen that it seemed was having problems
because another window event sometimes happened before the script was
done executing.  I didn't think it was too long, but sometimes window
events happen quickly.  My symptom was the "There was an error while
the previous error was still being displayed.  Abort and start config"
dialog box, only I never saw the original error dialog box. 
Apparently I have fixed it (still testing) by creating a global
variable at PP start up (G_InHookWindowEvents) and then the first few
lines of HookWindowEvents look like this:

;check to see if parallel execution
if (G_InHookWindowEvents == "YES") do
        Quit
endif
;prevent parallel execution
G_InHookWindowEvents = "YES"

Then, I put the code I really want to run, and then after that the end
of HookWindowEvents looks like this:
;allow normal execution
G_InHookWindowEvents = "no"
Quit

Has anyone else noticed something similar?  

Brian Cunningham




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