pywinauto.win32_element_info 内部实现模块
- win32_element_info.HwndElementInfo
- HwndElementInfo.automation_id
- HwndElementInfo.children
- HwndElementInfo.class_name
- HwndElementInfo.control_id
- HwndElementInfo.control_type
- HwndElementInfo.descendants
- HwndElementInfo.dump_window
- HwndElementInfo.enabled
- HwndElementInfo.from_point
- HwndElementInfo.full_control_type
- HwndElementInfo.handle
- HwndElementInfo.iter_children
- HwndElementInfo.name
- HwndElementInfo.parent
- HwndElementInfo.process_id
- HwndElementInfo.rectangle
- HwndElementInfo.rich_text
- HwndElementInfo.set_cache_strategy
- HwndElementInfo.top_from_point
- HwndElementInfo.visible
用于处理本机元素的类的实现(带句柄的窗口)
win32_element_info.HwndElementInfo
class pywinauto.win32_element_info.HwndElementInfo(handle=None)
窗口处理程序的包装器
HwndElementInfo.automation_id
pywinauto.win32_element_info.HwndElementInfo.automation_id
- 返回元素的 AutomationId
HwndElementInfo.children
pywinauto.win32_element_info.HwndElementInfo.children(**kwargs)
- 返回窗口的直接子级列表
HwndElementInfo.class_name
pywinauto.win32_element_info.HwndElementInfo.class_name
- 返回窗口的类名
HwndElementInfo.control_id
pywinauto.win32_element_info.HwndElementInfo.control_id
- 返回窗口的 ID
HwndElementInfo.control_type
pywinauto.win32_element_info.HwndElementInfo.control_type
- 元素的返回控制类型
HwndElementInfo.descendants
pywinauto.win32_element_info.HwndElementInfo.descendants(**kwargs)
- 返回窗口的后代(子树中的所有子项)
HwndElementInfo.dump_window
pywinauto.win32_element_info.HwndElementInfo.dump_window()
- 将窗口转储为一组属性
HwndElementInfo.enabled
pywinauto.win32_element_info.HwndElementInfo.enabled
- 如果启用了窗口,则返回 True
HwndElementInfo.from_point
@staticmethod
pywinauto.win32_element_info.HwndElementInfo.from_point(x, y)
HwndElementInfo.full_control_type
pywinauto.win32_element_info.HwndElementInfo.full_control_type
- 返回元素的控制类型的完整字符串
HwndElementInfo.handle
pywinauto.win32_element_info.HwndElementInfo.handle
- 返回窗口的把手
HwndElementInfo.iter_children
pywinauto.win32_element_info.HwndElementInfo.iter_children(**kwargs)
- 返回窗口的直接子项的生成器
HwndElementInfo.name
pywinauto.win32_element_info.HwndElementInfo.name
- 返回窗口的文本
HwndElementInfo.parent
pywinauto.win32_element_info.HwndElementInfo.parent
- 返回窗口的父级
HwndElementInfo.process_id
pywinauto.win32_element_info.HwndElementInfo.process_id
- 返回控制此窗口的进程的 ID
HwndElementInfo.rectangle
pywinauto.win32_element_info.HwndElementInfo.rectangle
- 返回元素的矩形
HwndElementInfo.rich_text
pywinauto.win32_element_info.HwndElementInfo.rich_text
- 返回窗口的文本
HwndElementInfo.set_cache_strategy
pywinauto.win32_element_info.HwndElementInfo.set_cache_strategy(cached)
- 用于为元素的频繁使用属性设置缓存策略。
HwndElementInfo.top_from_point
@staticmethod
pywinauto.win32_element_info.HwndElementInfo.top_from_point(x, y)
HwndElementInfo.visible
pywinauto.win32_element_info.HwndElementInfo.visible
- 如果窗口可见,则返回 True