获取Windows应用程序中的控件名称

发布于 2024-10-06 02:38:00 字数 241 浏览 0 评论 0原文

在 Stackoverflow 上的搜索中没有找到这个 - 我知道我以前见过类似的工具,用于在 Windows 应用程序中获取控件名称或 ID,然后可以在 AutoIt 等工具中用于自动化测试中的参考。谁能推荐一个吗?

我尝试过 OLE/COM 对象查看器,虽然它有控制列表,但没有与之交互的方法。就像 Firefox 中的 Web 开发人员工具包一样,您可以单击一个控件并获取有关它的所有信息,我正在寻找一个用于 Windows 测试的类似应用程序。

Haven't found this in my search on Stackoverflow - I know I've seen a tool like it before, for obtaining control names or IDs in Windows apps which can then be used for reference in automated testing, in tools like AutoIt. Can anyone suggest one?

I've tried the OLE/COM Object Viewer and while it has control lists, there's no interactive method with it. Like the web developer toolkit in Firefox where you can click a control and get all the information about it, I'm after a similar app for Windows testing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终难遇 2024-10-13 02:38:00

它被称为间谍++。

It's called Spy++.

π浅易 2024-10-13 02:38:00

找到了我想要的工具,NUnitForms - 这意味着您可以使用 NUnit 框架访问 Windows 窗体,并且包括用于识别控件的记录器工具,以及用于给出各个组件名称以及其他所有内容的 Managed Spy信息 - 字体、颜色、大小。很不错。

NUnitFormshttp://nunitforms.sourceforge.net/

ManagedSpy< /strong>: http://msdn.microsoft.com/en-us/magazine /cc163617.aspx

Found the tool I wanted, either NUnitForms - which means you can use the NUnit Framework to access windows forms, and includes a Recorder tool for identifying the controls, as well as Managed Spy for giving the individual component names as well as every bit of other info - font, color, size. Very nice.

NUnitForms : http://nunitforms.sourceforge.net/

ManagedSpy: http://msdn.microsoft.com/en-us/magazine/cc163617.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文