> In PowerPro startup script I initialize a variable:
> global FullScrCapts = ""
> 
> Then in HWE:
> if (win.fullscreen(1) == 1)
> FullScrCapts ++= arg(4) ++ " 

My understanding from first note that you posted is that the variable 
FullSrCapts is sometimes empty or sometimes does not include some of the 
captions of full screen windows.  Some possible reasons:

1.  Window is not in full screen mode when HWE script is run
2.  Window caption has not been set when HWE is run
3.  Multiple windows open at nearly the same time, and the earlier ones are 
missed 
4.  win.fullscreen fails for some programs (symptom of this would be that same 
program fails consistently)

Possibly solutions for 1-3 (no solution for 4 except special case processing)
1.  Consider using autorun with matching window of * to run script and replace 
arg(4) by win.caption.  Could do both this and HWE if it seemed to help and did 
not affect performance of your machine - need to add check to script to avoid 
duplicating caption in global variable.

2.  If window is not full screen or caption is empty in script, create an 
single-execution event which will recheck the window handle in 500 ms.  Use the 
cb function to create callback to a script which is passed the window handle to 
check rather than storing the window handle in a global, in case there are 
multiple outstanding such events.

I don't understand enough details about what you are doing to comment on other 
aspects of your scripts.

>

Reply via email to