This differs from the class of the control in some cases.Ĭlass_name() is the actual ‘Registered’ element class of the control Return the friendly class name for the control Read-only property to get ElementInfo object friendly_class_name ( ) ¶ rect the coordinates of the rectangle to draw (defaults to.fill how to fill in the rectangle (default BS_NULL).thickness thickness of rectangle (default 2).colour can be either an integer or one of ‘red’, ‘green’, ‘blue’.absolute specifies whether to use absolute coordinatesĭraw_outline ( colour='green', thickness=2, fill=, rect=None ) ¶. pressed is a key on the keyboard to press during the drag.It can be “left”, “right”, “middle” or “x” button is a mouse button to hold during the drag.If src is None the self is used as a source object. src is a source wrapper object or coordinates.dst is a destination wrapper object or just coordinates.double_click_input ( button='left', coords=(None, None) ) ¶ĭouble click at the specified coordinates drag_mouse_input ( dst=(0, 0), src=None, button='left', pressed='', absolute=True ) ¶ Return the descendants of this element as a listĪn empty list is returned if there are no descendants. The ID usually identified the control in the window - but there canīe duplicate ID’s for example lables in a dialog may have duplicate Only controls have a valid ID - dialogs usually have no ID assigned. Return the number of children of this control control_id ( ) ¶ Maps point from client to screen coordinates control_count ( ) ¶ This method is also vulnerable if the mouse is moved by the userĪs that could easily move the mouse off the control before theĬlick_input has finished. To be visible on the screen but performs a more realistic ‘click’ This is different from click method in that it requires the control wheel_dist The distance to move the mouse wheel (default: 0).double Whether to perform a double click or not (Default: False).coords The coordinates to click at.(Default: the center of the control).‘middle’ or ‘x’ (Default: ‘left’, ‘move’ is a special case) Return the class name of the elenemt click_input ( button='left', coords=(None, None), button_down=True, button_up=True, double=False, wheel_dist=0, use_log=True, pressed='', absolute=False, key_down=True, key_up=True ) ¶ It returns a list of BaseWrapper (or subclass) instances.Īn empty list is returned if there are no children. Return the children of this element as a list See PIL documentation to know what you can do with the resulting can_be_label = False ¶ capture_as_image ( rect=None ) ¶ BaseWrapper ( element_info, active_backend ) ¶Īll other wrappers are derived from this. BaseMeta ¶Ībstract metaclass for Wrapper objects static find_wrapper ( element ) ¶Ībstract static method to find an appropriate wrapper class pywinauto.base_wrapper. Base class for all wrappers in all backends class pywinauto.base_wrapper.
0 Comments
Leave a Reply. |