Module Assign NameStore Str ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad If CompareEq NameLoad AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Assign NameStore BinOpAdd NameLoad BinOpDiv BinOpMult BinOpSub NameLoad NameLoad BinOpAdd NameLoad Num Num Assign NameStore BinOpAdd NameLoad BinOpDiv BinOpMult BinOpSub NameLoad NameLoad BinOpAdd NameLoad Num Num Expr BoolOpAnd NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Assign NameStore BinOpAdd NameLoad BinOpDiv BinOpMult BinOpSub NameLoad NameLoad BinOpAdd NameLoad Num Num Assign NameStore BinOpAdd NameLoad BinOpDiv BinOpMult BinOpSub NameLoad NameLoad BinOpAdd NameLoad Num Num Expr BoolOpAnd NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A __author__ alex.jakovenko@gmail.com Quartz CoreGraphics CG time sleep interfaces.i_mouse IMouse utils.mac_utils MacUtils MacMouse N/A IMouse N/A N/A LEFT_BUTTON b1c N/A RIGHT_BUTTON b3c N/A _SUPPORTED_BUTTON_NAMES N/A LEFT_BUTTON RIGHT_BUTTON N/A _LEFT_BUTTON_CODES N/A N/A CG kCGEventLeftMouseDown N/A CG kCGEventLeftMouseDragged N/A CG kCGEventLeftMouseUp N/A _RIGHT_BUTTON_CODES N/A N/A CG kCGEventRightMouseDown N/A CG kCGEventRightMouseDragged N/A CG kCGEventRightMouseUp _compose_mouse_event_chain N/A N/A self name press release N/A True False N/A N/A 
        Composes chain of mouse events based on button name and action flags.

        Arguments:
            - name: string value holding mouse button name. Should be one of:
            'b1c' - left button or 'b3c' - right button.
            - press: boolean flag indicating whether event should indicate
            button press.
            - release: boolean flag indicating whether event should indicate
            button release.

        Returns:
            - None
         N/A mouse_event_chain N/A N/A N/A name N/A self LEFT_BUTTON N/A N/A press N/A N/A N/A N/A mouse_event_chain append N/A CG kCGEventLeftMouseDown N/A release N/A N/A N/A N/A mouse_event_chain append N/A CG kCGEventLeftMouseUp N/A N/A name N/A self RIGHT_BUTTON N/A N/A press N/A N/A N/A N/A mouse_event_chain append N/A CG kCGEventRightMouseDown N/A release N/A N/A N/A N/A mouse_event_chain append N/A CG kCGEventRightMouseUp N/A mouse_event_chain N/A _do_event N/A N/A self code x y N/A N/A N/A 
        Generates mouse event for a special coordinate.

        Arguments:
            - code: integer value holding mouse event code.
            - x: integer value with x coordinate.
            - y: integer value with y coordinate.
        Returns:
            - None
         N/A N/A code N/A self _LEFT_BUTTON_CODES N/A N/A button N/A CG kCGMouseButtonLeft N/A N/A N/A code N/A self _RIGHT_BUTTON_CODES N/A N/A button N/A CG kCGMouseButtonRight N/A N/A button N/A CG kCGMouseButtonCenter N/A N/A N/A CG CGEventPost N/A CG kCGHIDEventTap N/A N/A CG CGEventCreateMouseEvent None code N/A x y button N/A _do_events N/A N/A self codes x y N/A N/A N/A 
        Generates a sequence of mouse events for a special coordinate.

        Arguments:
            - codes: list of integer values holding mouse event codes.
            - x: integer value with x coordinate.
            - y: integer value with y coordinate.
        Returns:
            - None
         N/A code codes N/A N/A N/A N/A self _do_event code x y N/A move N/A N/A self x y smooth N/A True N/A N/A N/A N/A MacUtils verify_xy_coordinates x y N/A N/A old_x old_y N/A N/A self get_position N/A i N/A xrange 100 N/A N/A intermediate_x N/A old_x N/A N/A N/A x old_x N/A i 1 100.0 N/A intermediate_y N/A old_y N/A N/A N/A y old_y N/A i 1 100.0 N/A N/A smooth N/A sleep 0.01 N/A N/A N/A self _do_event N/A CG kCGEventMouseMoved N/A int intermediate_x N/A int intermediate_y N/A drag N/A N/A self x1 y1 x2 y2 smooth N/A True N/A N/A N/A N/A MacUtils verify_xy_coordinates x1 y1 N/A N/A N/A MacUtils verify_xy_coordinates x2 y2 N/A N/A N/A self press_button x1 y1 N/A self LEFT_BUTTON N/A i N/A xrange 100 N/A N/A x N/A x1 N/A N/A N/A x2 x1 N/A i 1 100.0 N/A y N/A y1 N/A N/A N/A y2 y1 N/A i 1 100.0 N/A N/A smooth N/A sleep 0.01 N/A N/A N/A self _do_event N/A CG kCGEventLeftMouseDragged x y N/A N/A N/A self release_button N/A self LEFT_BUTTON N/A press_button N/A N/A self x y button_name N/A LEFT_BUTTON N/A N/A N/A N/A MacUtils verify_xy_coordinates x y N/A N/A N/A MacUtils verify_mouse_button_name button_name N/A self _SUPPORTED_BUTTON_NAMES N/A event_codes N/A N/A self _compose_mouse_event_chain button_name press True release False N/A N/A N/A self _do_events event_codes x y N/A release_button N/A N/A self button_name N/A LEFT_BUTTON N/A N/A N/A N/A MacUtils verify_mouse_button_name button_name N/A self _SUPPORTED_BUTTON_NAMES N/A event_codes N/A N/A self _compose_mouse_event_chain button_name press False release True N/A N/A N/A self _do_events event_codes 0 0 N/A click N/A N/A self x y button_name N/A LEFT_BUTTON N/A N/A N/A N/A MacUtils verify_xy_coordinates x y N/A N/A N/A MacUtils verify_mouse_button_name button_name N/A self _SUPPORTED_BUTTON_NAMES N/A event_codes N/A N/A self _compose_mouse_event_chain button_name press True release True N/A N/A N/A self _do_events event_codes x y N/A double_click N/A N/A self x y button_name N/A LEFT_BUTTON N/A N/A N/A N/A MacUtils verify_xy_coordinates x y N/A N/A N/A MacUtils verify_mouse_button_name button_name N/A self _SUPPORTED_BUTTON_NAMES N/A N/A button_name N/A self LEFT_BUTTON N/A N/A button N/A CG kCGMouseButtonLeft N/A down N/A CG kCGEventLeftMouseDown N/A up N/A CG kCGEventLeftMouseUp N/A N/A button_name N/A self RIGHT_BUTTON N/A N/A button N/A CG kCGMouseButtonRight N/A down N/A CG kCGEventRightMouseDown N/A up N/A CG kCGEventRightMouseUp N/A event N/A N/A CG CGEventCreateMouseEvent None down N/A x y button N/A N/A N/A CG CGEventPost N/A CG kCGHIDEventTap event N/A N/A N/A CG CGEventSetType event up N/A N/A N/A CG CGEventPost N/A CG kCGHIDEventTap event N/A N/A N/A CG CGEventSetIntegerValueField event N/A CG kCGMouseEventClickState 2 N/A N/A N/A CG CGEventSetType event down N/A N/A N/A CG CGEventPost N/A CG kCGHIDEventTap event N/A N/A N/A CG CGEventSetType event up N/A N/A N/A CG CGEventPost N/A CG kCGHIDEventTap event N/A get_position N/A N/A self N/A N/A N/A position N/A N/A CG CGEventGetLocation N/A N/A CG CGEventCreate None N/A N/A N/A int N/A position x N/A int N/A position y N/A N/A