介绍
借助UI Automation实现,获取焦点处控件信息。
这个子程序要非常感谢CL老大,我找半天找到才找到一点思绪,然后求助老大,他一下就直接发给了我核心用法,大佬威武~ 十分感谢!
可供参考:https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.focusedelement?view=netcore-3.1
子程序的参数
输入
输出
控件名称
Text
控件类型ID
Text
控件类型描述信息
见:https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.automationelementinformation.localizedcontroltype?view=netcore-3.1#System_Windows_Automation_AutomationElement_AutomationElementInformation_LocalizedControlType
Text
控件类型_中文
Text
控件类型_英文
Text
控件位置_Left
Integer
控件位置_Top
Integer
控件位置_Right
Integer
控件位置_Bottom
Integer
控件信息_汇总词典
汇总了焦点处的多条控件信息,便于调试时快速查看所有信息。
Dict
最近更新
|
修订版本
|
更新时间
|
更新说明
|
|
2
|
2020-08-24 15:22
|
公开发布
|
|
1
|
2020-08-23 22:37
|
手动引入程序集,不然有概率提示AutomationElement不存在。
|
|
0
|
2020-08-17 22:59
|
初版
|
最近讨论
使用问题
· 919
欲成仙
2021-12-08 19:41
欲成仙
2021-12-08 22:07