--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
>
> 
> Meanwhile, does com.get_accessible_object work for what you
> wanted it for (out-of-process richedit controls?)

Ran the following with com versions 065 and 067, where riched is the handle to 
an out-of-process richedit control. Same riched control used for both. Output 
from each differs. See below.

I haven't studied 067, maybe there is something I was supposed to change in my 
script in order to keep getting the hTom object?

Regards,
Sheri

local com_status
win.debug(com.version)
local hTom = com.get_accessible_object(riched,  "dispatch")
local sDesc = hTom.get_object_description
local nLines = line(sDesc, 0)
for (local i = 1; i <= nLines; i++)
 win.debug(line(sDesc, i))
endfor
quit

;debug com 065
0065
function: QueryInterface(riid, ppvObj)
function: AddRef()
function: Release()
function: GetTypeInfoCount(pctinfo)
function: GetTypeInfo(itinfo, lcid, pptinfo)
function: GetIDsOfNames(riid, rgszNames, cNames, lcid, rgdispid)
function: Invoke(dispidMember, riid, lcid, wFlags, pdispparams, pvarResult, 
pexcepinfo, puArgErr)
get property: Name()
get property: Selection()
get property: StoryCount()
get property: StoryRanges()
get property: Saved()
put property: Saved()
get property: DefaultTabStop()
put property: DefaultTabStop()
function: New()
function: Open(pVar, Flags, CodePage)
function: Save(pVar, Flags, CodePage)
function: Freeze()
function: Unfreeze()
function: BeginEditCollection()
function: EndEditCollection()
function: Undo(Count)
function: Redo(Count)
function: Range(cp1, cp2)
function: RangeFromPoint(x, y)

;debug com 067
0067
function: QueryInterface(riid, ppvObj)
function: AddRef()
function: Release()
function: GetTypeInfoCount(pctinfo)
function: GetTypeInfo(itinfo, lcid, pptinfo)
function: GetIDsOfNames(riid, rgszNames, cNames, lcid, rgdispid)
function: Invoke(dispidMember, riid, lcid, wFlags, pdispparams, pvarResult, 
pexcepinfo, puArgErr)
get property: accParent()
get property: accChildCount()
get property: accChild(varChild)
get property: accName(varChild)
get property: accValue(varChild)
get property: accDescription(varChild)
get property: accRole(varChild)
get property: accState(varChild)
get property: accHelp(varChild)
get property: accHelpTopic(pszHelpFile, varChild)
get property: accKeyboardShortcut(varChild)
get property: accFocus()
get property: accSelection()
get property: accDefaultAction(varChild)
function: accSelect(flagsSelect, varChild)
function: accLocation(pxLeft, pyTop, pcxWidth, pcyHeight, varChild)
function: accNavigate(navDir, varStart)
function: accHitTest(xLeft, yTop)
function: accDoDefaultAction(varChild)
put property: accName(varChild)
put property: accValue(varChild)


Reply via email to