我想使用 MSAA 自动化简单的 Windows 应用程序。我不知道如何找到控件(例如 TextBox
和 Button
)并获取它们的值(例如获取 TextBox
的值)并单击按钮)。
最佳答案
为什么要使用 MSAA 实现自动化?微软目前的方式是UI Automation .
来自维基百科(强调我的):
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 自动化,您可以通过创建 native 或 .NET 应用程序或使用第三方工具(例如 RIATest)来实现自动化。依赖于 UI 自动化。
(免责声明:我隶属于 RIATest)。
关于c# - 如何使用 MSAA 自动化简单的 Windows 窗体应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15499293/