Juan,
You can just go through the children and look at the state of each.
When you get one that is "Selected", that is the current index. So
something like this for example:
set allChildren = FocusedWindow.Accessible.Children
total = allChildren.Count
currentIndex = 0
for i=1 to total
If allChildren(i).State.Selected Then
currentIndex = i
Exit For
End If
next
' at this point currentIndex is the first selected index or 0 otherwise
Of course if there are multiple items selected you would need to account
for that but this should get you going.
Regards,
Doug
Juan Hernandez wrote:
Hello,
the list view used in itunes is a WTCustomControl. I have noticed
that in jaws, the index information is given to the screen reader ie:
32 of 1442 etc.
I can get the number of items in the list by accessible.children.count
but what would be some ways to get the current index that is selected?
Thanks for any help.
Juan
Juan Hernandez
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
858-699-2105
--
Doug Geoffray
GW Micro, Inc.
Voice 260-489-3671
Fax 260-489-2608
http://www.gwmicro.com