--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > > and the modified comPluginDemoScriptAccessible.powerpro therein.
> >
> > [snip]
> >
> > New version gets:
> >
> > ERROR: com.get_accessible_child: Bad input params no such children
> >
> > Error occurred near line 177 of script comPluginDemoScriptAccessible:
> > local haoMenuItem = hAO.get_accessible_child(" Edit", "menu item")
> >
> > Is it any different when you run it?
>
> Oh argh. Yes, I put extra spaces in so I'd be accessing non-existent child.
> Should be:
>
> local haoMenuItem = hAO.get_accessible_child("Edit", "menu item")
Unfortunately with that change to the script, it crashes on this bit:
local haoPaste = haoMenuPU.get_accessible_child("Paste\tCtrl+V", "menu item")
I tried inserting above that line:
win.debug("edit child count:",haoMenuPU.accChildCount)
showChildren("Edit menu", haoMenuPU)
Your showChildren function should be showing the Name and Value of each index
of the children, but for this set of children it is only showing the index
(i.e., nothing for "Paste\tCtrl+V")
my output:
edit child count: 16
Edit menu child 1: 1
Edit menu child 2: 2
Edit menu child 3: 3
Edit menu child 4: 4
Edit menu child 5: 5
Edit menu child 6: 6
Edit menu child 7: 7
Edit menu child 8: 8
Edit menu child 9: 9
Edit menu child 10: 10
Edit menu child 11: 11
Edit menu child 12: 12
Edit menu child 13: 13
Edit menu child 14: 14
Edit menu child 15: 15
Edit menu child 16: 16
Any different there?
[snip]
> Will incorporate.
Don't forget to make updates of the non-rtf docs and the function txt file.
Regards,
Sheri