aardio 文档
FlaUI.UIA2 库模块帮助文档
FlaUI.UIA2 成员列表 #
FlaUI.UIA2.UIA2Automation #
UIA2 自动化接口。
UIA2 老旧卡,建议使用更新更快的 FlaUI.UIA3。
注意:不要在同一进程中同时导入 FlaUI.UIA2 与 FlaUI.UIA3
FlaUI.UIA2.UIA2Automation() #
创建 UIA2Automation 对象
返回对象:FlaUIA2AutomationObject
FlaUIA2AutomationObject 成员列表 #
FlaUIA2AutomationObject.By() #
返回对象:FlaUICondition2Object
FlaUIA2AutomationObject.By(condition) #
FlaUIA2AutomationObject.By(
ControlType = "Edit";
Name = "输入";/*创建节点搜索条件。
表参数@1 中每个键值对指定一个匹配条件,多个条件为 And 关系。
返回对象提供 And,Or,Not 函数,
And,Or 可以此函数创建的其他搜索条件对象作为参数*/
)
FlaUIA2AutomationObject.ConditionFactory #
用于创建节点搜索条件
FlaUIA2AutomationObject.ConnectionTimeout #
连接超时,
值为 System.TimeSpan 对象。
默认值为 2 秒
FlaUIA2AutomationObject.FindWindow #
查找窗口对象
FlaUIA2AutomationObject.FindWindow() #
返回对象:FlaUIElementObject
FlaUIA2AutomationObject.FindWindow(进程,窗口类名,标题,超时) #
所有参数可选(至少指定一个查找条件)。
参数@1可指定 process 对象、进程ID、EXE文件名、EXE路径。
窗口类名、标题都支持模式匹配语法。
超时可选指定一个单位为毫秒的数值
FlaUIA2AutomationObject.FocusedElement() #
返回输入焦点所在节点
FlaUIA2AutomationObject.FromHandle() #
返回对象:FlaUIElementObject
FlaUIA2AutomationObject.FromHwnd() #
自参数@1指定的窗口句柄获取节点
返回对象:FlaUIElementObject
FlaUIA2AutomationObject.FromPoint() #
自参数@1指定的坐标获取节点。
参数@1 应为 System.Drawing.Point 类型
返回对象:FlaUIElementObject
FlaUIA2AutomationObject.GetDesktop() #
返回桌面窗口
FlaUIA2AutomationObject.TransactionTimeout #
处理超时,
值为 System.TimeSpan 对象。
默认值为 2 秒
FlaUICondition2Object 成员列表 #
FlaUICondition2Object.And() #
逻辑与,参数 @1 可指定 By 函数返回的其他搜索条件对象
FlaUICondition2Object.Not() #
逻辑取反
FlaUICondition2Object.Or() #
逻辑或,参数 @1 可指定 By 函数返回的其他搜索条件对象
Markdown 格式