[jawsscripts] Re: Accessing MSAA objects by index

  • From: Jim Bauer <holdsworthfan@xxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 22 Jan 2010 14:25:43 -0600

Or:
let o = o.accChild(1).accChild(n)
"Travis Roth" <travis@xxxxxxxxxxxxxx> wrote on Fri, 22 Jan 2010
13:07:06 -0600:

>Hi Mark,
>
>JAWS cannot handle arrays, so I doubt that code will work.
>
>To get to a specific child you can write a function that'd loop through the
>children the specified amount of times.
>To get to any specific child 
>
>let object = object.accNavigate(7,0); (move to first child) 
>and then just move along those objects with a 
>let object = object.accNavigate(5,0) ;(move to next object)
>
>
>as many times as you need.
>
>-----Original Message-----
>From: jawsscripts-bounce@xxxxxxxxxxxxx
>[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Mark A. DeMichele
>Sent: Friday, January 22, 2010 12:51 PM
>To: jawsscripts@xxxxxxxxxxxxx
>Subject: [jawsscripts] Accessing MSAA objects by index
>
>I'm writing a JAWs script where I get the count of children in an
>object, and I want to analyze them.  I read in another post that you can
>do something like this.
> 
>
>Let n = obj.accChildCount
>
> 
>
>And then from 1 to n do
>
> 
>
>Let o = obj(number)
>
> 
>
>However, when I do this, o does not seem to contain anything.
>
> 
>
>I looked at other uses of .accChildCount and in other places it seems
>that they assume childIDs are integers from 1 to n, but in my case
>that's not true.
>
> 
>
>Is there a way to access the children objects just based on their
>position in the list?
>
>
>__________ 
>Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
>View the list's information and change your settings at 
>//www.freelists.org/list/jawsscripts
>
>
>__________ 
>Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
>View the list's information and change your settings at 
>//www.freelists.org/list/jawsscripts

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: