# pywinauto.handleprops
用于从窗口句柄检索属性的函数
这些都是以程序化的方式实现的,以便对概念开销最小的其他模块有用。
> `pywinauto.handleprops.children`(*handle*)
将句柄列表返回给此窗口的子项
> `pywinauto.handleprops.``classname`(*handle*)
返回窗口的类名
> `pywinauto.handleprops.clientrect`(*handle*)
返回控件的客户端矩形
> `pywinauto.handleprops.contexthelpid`(*handle*)
返回窗口的上下文帮助ID
> `pywinauto.handleprops.controlid`(*handle*)
返回控件的ID
> `pywinauto.handleprops.dumpwindow`(*handle*)
将窗口转储到一组属性
> `pywinauto.handleprops.exstyle`(*handle*)
返回窗口的扩展样式
> `pywinauto.handleprops.font`(*handle*)
将字体作为窗口的LOGFONTW返回
> `pywinauto.handleprops.has_enough_privileges`(*process\_id*)
检查目标进程是否具有足够的权限来查询GUI操作
> `pywinauto.handleprops.has_exstyle`(*handle*, *tocheck*)
如果控件具有要检查的扩展样式,则返回True
> `pywinauto.handleprops.has_style`(*handle*, *tocheck*)
Return True if the control has style tocheck
> `pywinauto.handleprops.is64bitbinary`(*filename*)
Check if the file is 64-bit binary
> `pywinauto.handleprops.is64bitprocess`(*process\_id*)
如果指定的进程是x64上的64位进程,则返回True
如果它只是在Wow64下运行的32位进程,则返回False。 始终为x86返回False。
> `pywinauto.handleprops.is_toplevel_window`(*handle*)
返回窗口是否为顶级窗口
> `pywinauto.handleprops.isenabled`(*handle*)
Return True if the window is enabled
> `pywinauto.handleprops.isunicode`(*handle*)
Return True if the window is a Unicode window
> `pywinauto.handleprops.``isvisible`(*handle*)[¶](#pywinauto.handleprops.isvisible "Permalink to this definition")
>
> Return True if the window is visible
>
> `pywinauto.handleprops.``iswindow`(*handle*)[¶](#pywinauto.handleprops.iswindow "Permalink to this definition")
>
> Return True if the handle is a window
>
> `pywinauto.handleprops.``parent`(*handle*)[¶](#pywinauto.handleprops.parent "Permalink to this definition")
>
> Return the handle of the parent of the window
>
> `pywinauto.handleprops.``processid`(*handle*)[¶](#pywinauto.handleprops.processid "Permalink to this definition")
>
> Return the ID of process that controls this window
>
> `pywinauto.handleprops.``rectangle`(*handle*)[¶](#pywinauto.handleprops.rectangle "Permalink to this definition")
>
> Return the rectangle of the window
>
> `pywinauto.handleprops.``style`(*handle*)[¶](#pywinauto.handleprops.style "Permalink to this definition")
>
> Return the style of the window
>
> `pywinauto.handleprops.``text`(*handle*)[¶](#pywinauto.handleprops.text "Permalink to this definition")
>
> Return the text of the window
>
> `pywinauto.handleprops.``userdata`(*handle*)[¶](#pywinauto.handleprops.userdata "Permalink to this definition")
>
> Return the value of any user data associated with the window
- 什么是Pywinauto
- 入门指南
- 如何
- 等待长时间操作
- 远程执行指南
- 每种不同控制类型可用的方法
- 贡献者
- 开发笔记
- 待办项目
- 更新日志
- 基本用户输入模块
- pywinauto.mouse
- pywinauto.keyboard
- 主要用户模块
- pywinauto.application
- pywinauto.findbestmatch
- pywinauto.findwindows
- pywinauto.timings
- 特定功能
- pywinauto.clipboard
- pywinauto.win32_hooks
- 控件参考
- pywinauto.base_wrapper
- pywinauto.controls.hwndwrapper
- pywinauto.controls.menuwrapper
- pywinauto.controls.common_controls
- pywinauto.controls.win32_controls
- pywinauto.controls.uiawrapper
- pywinauto.controls.uia_controls
- Pre-supplied Tests
- pywinauto.tests.allcontrols
- pywinauto.tests.asianhotkey
- pywinauto.tests.comboboxdroppedheight
- pywinauto.tests.comparetoreffont
- pywinauto.tests.leadtrailspaces
- pywinauto.tests.miscvalues
- pywinauto.tests.missalignment
- pywinauto.tests.missingextrastring
- pywinauto.tests.overlapping
- pywinauto.tests.repeatedhotkey
- pywinauto.tests.translation
- pywinauto.tests.truncation
- 后端内部实施模块
- pywinauto.backend
- pywinauto.element_info
- pywinauto.win32_element_info
- pywinauto.uia_element_info
- pywinauto.uia_defines
- 内部模块
- pywinauto.controlproperties
- pywinauto.handleprops
- pywinauto.xml_helpers
- pywinauto.fuzzydict
- pywinauto.actionlogger
- pywinauto.sysinfo
- pywinauto.remote_memory_block