企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 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