Tool to grab items from a Listbox in external app
I need to grab text items from a listbox in an application. I know for sure that the control is a ListBox. I've seen many tools that could do this, but I cannot remember their names. And I cannot find the right words to开发者_如何学C google for it. Does anybody know such tool?
You just get hold of the window handle of the list box and send some LB_GETTEXT messages. As far as tools go you might be thinking of Spy.
I couldn't find anything and ended up writing a small C# application using System.Windows.Automation. Just several lines of code.
精彩评论