Thanks Jay.  I did try the parent, but I didn't try sleeping first.  I'll
try it like this.
 
thanks.
 
Chip
 
 

  _____  

From: Macarty, Jay {PBSG} [mailto:[email protected]] 
Sent: Friday, January 23, 2009 6:25 PM
To: [email protected]
Subject: RE: msaa help?



Chip,

Perhaps, something like the following would work for you:

 

Sub OnObjectFocus (IAcc)

On Error Resume Next

 

Select Case IAcc.Role.Value

 Case role_SYSTEM_LISTITEM

   If IAcc.Parent.Name = "Contacts List" Then 

   Sleep 200 

   Silence

   Speak IAcc.Name & " is " & IAcc.Value

  End If

End Select

On Error Goto 0

End Sub

 

From: Chip Orange [mailto:[email protected]] 
Sent: Friday, January 23, 2009 5:17 PM
To: [email protected]
Subject: msaa help?

 

I'm trying to find the text of a selected list item when the selection
changes.

 

I'm capturing the OnObjectSelection MSAA event, but I cannot find a way to
get at the text of the new selection.

 

Does anyone know how I should proceed from the accessible object passed to
the OnObjectSelection event handler?

 

thanks.

 

Chip

 

 

 





------------------------------

Chip Orange
Database Administrator
Florida Public Service Commission

[email protected]
(850) 413-6314

 (Any opinions expressed are solely those of the author and do not
necessarily reflect those of the Florida Public Service Commission.)

 

Reply via email to