# 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