--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
>
> Very much work-in-progress
> 
> In the usual
> 
> http://tech.groups.yahoo.com/group/power-pro/files/0_TEMP_/AlansPluginProvisional/
> 
> get_accessible_object(hwnd, ["dispatch" | "accessible", [ objectID]])
> 
> objectID defaults to OBJID_NATIVEOM if absent
> 
> ["dispatch" | "accessible",] if absent defaults to "dispatch"
> dunno if it's required yet.  It determines the REFIID riid param of call to 
> AccessibleObjectFromWindow.  
> 
> In the one or two trials I made, might have causes Powerpro to crash on exit. 
>  Or might have been:
> 
> get_object_description(com_handle [, item])
> aliases description, get_description
> 
> returns string with signatures of all functions/properties of
> object takes integer for description of just one
> function/property (if 0 based item present). Not sure that's any
> use. signatures are separated by newline. 

Definitely progress, but I haven't succeeded in invoking any of the methods 
that appear on the debug listing.

> 
> See sample script in zip.
> 
> Neither of above functions are running on the worker thread at
> the moment, which (if they do cause crashes) might be why. 

> 
> If I understand accessible, should work wiothout question on
> out-of-process controls? 

That is my understanding. However, at the moment the following (that worked for 
control in dialog script), when applied to the richedit50w handle in wordpad 
(in my recently posted script), creates a secondary Powerpro process, and sends 
cpu to 100% until killed.

local hAO = com.get_accessible_object(han,  "dispatch")
win.debug(hAO)

Regards,
Sheri

Reply via email to