开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜