如何使用 MSAA 自动化简单的 Windows 窗体应用程序? [英] How to Automate simple Windows Form Application using MSAA?

查看:24
本文介绍了如何使用 MSAA 自动化简单的 Windows 窗体应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 MSAA 自动化简单的 Windows 应用程序.我不知道如何找到控件(比如 TextBoxButton)并获取它们的值(比如获取 TextBox 的值)并在按钮的情况下单击).

I want to automate simple Windows Application using MSAA. I am not getting Idea that how to find the control (say TextBox and Button) and to get value of them(say get value of TextBox and click in case of button).

推荐答案

为什么要使用 MSAA 实现自动化?微软目前的方法是UI 自动化.

Why do you want to automate using MSAA? Microsoft's current way is UI Automation.

来自维基百科(重点是我的):

From Wikipedia (emphasis mine):

UIA 与 Microsoft Active Accessibility (MSAA) 的相似之处在于它提供一种公开和收集用户信息的方法支持用户界面的界面元素和控件可访问性和软件测试自动化.然而,UIA 是一个较新的提供比 MSAA 更丰富的对象模型的技术...

UIA is similar to Microsoft Active Accessibility (MSAA) in that it provides a means for exposing and collecting information about user interface elements and controls to support user interface accessibility and software test automation. However, UIA is a newer technology that provides a much richer object model than MSAA...

借助 UI 自动化,您可以通过创建本机或 .NET 应用程序或使用诸如 RIATest 依赖于 UI 自动化.

With UI Automation you can automate by creating a native or .NET application or use a 3rd party tool like RIATest that relies on UI Automation.

(免责声明:我隶属于 RIATest).

这篇关于如何使用 MSAA 自动化简单的 Windows 窗体应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆