开发者

Tool to grab items from a Listbox in external app

开发者 https://www.devze.com 2023-02-02 04:55 出处:网络
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 fin

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

精彩评论

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