--- In [email protected], "Sheri" <sheri...@...> wrote:

> My previously working script is again not working.
> 
> With version .65 it successfully used:
> local hTom = com.get_accessible_object(riched, "dispatch")
> 
> With version .67 "dispatch" needed to be removed:
> local hTom = com.get_accessible_object(riched)
> 
> That gives bad params error with version .70; ditto with addition param of  
> "dispatch".


local OBJID_NATIVEOM          = 0xFFFFFFF0
local hTom = com.get_accessible_object(riched, OBJID_NATIVEOM)

works fine on my machine.

comPluginDemoScriptAccessible.powerpro sample is wrong, sorry;
See docs: 12.4 get_accessible_object

Principle is: to get an accessible object plugin needs to know window handle, 
and what you want to know about it (see list of declares at beginning of 
comPluginDemoScriptAccessible.powerpro or in table in docs 12.4).

Plugin knows you want an IAccessible, except in special case of OBJID_NATIVEOM 
where you want an IDispatch. You don't have to tell it, so no longer need for 
"dispatch" vs "accessible" keywords.


 


Reply via email to