pyWinAuto: pywinauto.handleprops -- Functions to retrieve properties from a window handle

handleprops

Functions to retrieve properties from a window handle

These are implemented in a procedural way so as to to be useful to other modules with the least conceptual overhead


Functions

f text(handle) ...

Return the text of the window

f classname(handle) ...

Return the class name of the window

f parent(handle) ...

Return the handle of the parent of the window

f style(handle) ...

Return the style of the window

f exstyle(handle) ...

Return the extended style of the window

f controlid(handle) ...

Return the ID of the control

f userdata(handle) ...

Return the value of any userdata associated with the window

f contexthelpid(handle) ...

Return the context help id of the window

f iswindow(handle) ...

Return True if the handle is a window

f isvisible(handle) ...

Return True if the window is visible

f isunicode(handle) ...

Teturn True if the window is a unicode window

f isenabled(handle) ...

Return True if the window is enabled

f clientrect(handle) ...

Return the client rectangle of the control

f rectangle(handle) ...

Return the rectangle of the window

f font(handle) ...

Return the font as a LOGFONTW of the window

f processid(handle) ...

Retrun the ID of process that controls this window

f children(handle) ...

Return a list of handles to the children of this window

f has_style(handle, tocheck) ...

Return True if the control has style tocheck

f has_exstyle(handle, tocheck) ...

Return True if the control has extended style tocheck

f is_toplevel_window(handle) ...

Return whether the window is a top level window or not

f dumpwindow(handle) ...

Dump a window to a set of properties

See the source for more information.