Hi, Jonathan.

Unfortunately, there's no way to filter MSAA children like you can standard windows. You simply have to either traverse the tree, or do what you've done and point to the Accessible directly.

If you're wanting to click a button, instead of calling select, use DoDefaultAction instead. That will keep the button from gaining focus first.

Thanks,

Aaron

On 2/13/2014 5:31 PM, Jonathan C. Cohn wrote:
Good Evening,

I am trying to click a specific button in the Lync Attendee application from 
Microsoft.
How can I search for a button with the name "Share" without investigating the 
entire MSAA hierarchy?
The button is the forth child of the ModeBar  which is the second item of the 
window that immed Application  tells me has focus
        
I was able to do something like:
ClientInformation.Overlap.Accessible.Children(1).Children(4).Children(2).Children(4).select(1)
This awkward sequence initially causes the button to gain focus, but eventually 
another item in the MSAA tree moves the position or the ModeBar is hidden, or a 
dialog is active.


Thanks for any suggestions you might have.

--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Reply via email to