This doesn't seem to work when the IDs are not ordinal. In my case the IDs are not 1,2,3...n and I don't know what they are, I just know that there are N children. For what I'm doing the accNavigate does seem to work ok. It's odd that Jaws doesn't give you a way to locate the "Nth" child though. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jim Bauer Sent: Friday, January 22, 2010 3:26 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Accessing MSAA objects by index 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 __________ 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