Hi Sean,That would be a great deal of intercepting activity; it could be enough 
to obviously impact the performance of the system.
Rod's idea of working with the main window of the program is the most obvious 
one to pirsue; your use of the onChildClip event for the main window would also 
catch all the child windows as well.
If your program doesn't have a single main window, but can have several open at 
once, then you could either identify each of the main windows as it opens and 
trap onChildClip for each window (that's what I would do), or you could use an 
event of the MSAASourceEvent object.
You would need to make your own copy of the MSAA event object, the set one of 
its properties so you are filtering the events for the process you want to 
watch.
Then, just look for the event (probably onObjectValueChange) which contains the 
info you want.
To see what events are being generated by the program, before you write any of 
this, use the WE Event Viewer app and set it to show you just the MSAA events, 
and then you and use the program some.  It may or may not generate MSAA events; 
if it does, and they contain the info you need, then you could do it this way 
(but I'd only do it this way if you could not identify the windows you wanted 
to watch for clips).
hth,
Chip
----- Original Message -----From: Sean Farrow <[email protected]>To: 
[email protected]: Mon, 09 Dec 2013 19:52:16 -0000 (UTC)Subject: 
OnChildClpRendered for a specific process



Hi,
I&rsquo;m in a situation whereby I need to capture all child clips for a 
specific process.
Currently I&rsquo;m thinking about trapping the OnChildClipRendered event of 
the desktop window and checking the clips windows process against the process I 
want.
Can anybody think of a better way of doing this? It&rsquo;s the process the 
script which is an external script has been written for.
Any help/ideas appreciated.
Regards
Sean.


Reply via email to