Jump to content

Recommended Posts

Posted

I am looking out of a sample to get contents of a ListBox using UIAutiomation. I tried using WinAPI and have no luck(as getting control handle at runtime using ControlGetHandle returns 0x0000000). This listbox is like context menu that appear on click on a button, populated with text items. 

Note - I used SimpleSpy and was able to select one item. However since the list contents are more, I prefer to make it generic to look for a item name and click based on my requirement. 

Any ideas to approach

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...