Module Assign NameStore Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Num If CompareEq NameLoad AttributeLoad NameLoad attr body If NameLoad body AugAssignAdd NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignAdd NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body If NameLoad body AugAssignAdd NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignAdd NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpDiv BinOpMult Num NameLoad NameLoad Num Assign NameStore BinOpAdd BinOpDiv BinOpMult Num NameLoad NameLoad Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad 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 BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Num Num 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 Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword 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 Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Num Num Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Num Num 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 Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Num Num 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 Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A __author__ f1ashhimself@gmail.com N/A ctypes N/A ctypes.wintypes time sleep interfaces.i_mouse IMouse utils.win_utils WinUtils WinMouse N/A IMouse N/A N/A _MOUSEEVENTF_MOVE 1 N/A _MOUSEEVENTF_LEFTDOWN 2 N/A _MOUSEEVENTF_LEFTUP 4 N/A _MOUSEEVENTF_RIGHTDOWN 8 N/A _MOUSEEVENTF_RIGHTUP 16 N/A _MOUSEEVENTF_MIDDLEDOWN 32 N/A _MOUSEEVENTF_MIDDLEUP 64 N/A _MOUSEEVENTF_ABSOLUTE 32768 N/A _MOUSEEVENTF_XDOWN 128 N/A _MOUSEEVENTF_XUP 256 N/A _MOUSEEVENTF_WHEEL 2048 N/A _MOUSEEVENTF_HWHEEL 4096 N/A _SM_CXSCREEN 0 N/A _SM_CYSCREEN 1 N/A LEFT_BUTTON b1c N/A RIGHT_BUTTON b3c N/A _SUPPORTED_BUTTON_NAMES N/A LEFT_BUTTON RIGHT_BUTTON _compose_mouse_event N/A N/A self name press release N/A True False N/A N/A 
        Composes mouse event 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 0 N/A N/A name N/A self LEFT_BUTTON N/A N/A press N/A N/A mouse_event N/A self _MOUSEEVENTF_LEFTDOWN N/A release N/A N/A mouse_event N/A self _MOUSEEVENTF_LEFTUP N/A N/A name N/A self RIGHT_BUTTON N/A N/A press N/A N/A mouse_event N/A self _MOUSEEVENTF_RIGHTDOWN N/A release N/A N/A mouse_event N/A self _MOUSEEVENTF_RIGHTUP N/A mouse_event N/A _do_event N/A N/A self flags x y data extra_info N/A N/A N/A 
        Generates mouse event fo a special coordinate.

        Arguments:
            - flags: integer value holding flags that describes mouse events to
            trigger. Can be a combination of:
                _MOUSEEVENTF_MOVE = 0x0001 # mouse move
                _MOUSEEVENTF_LEFTDOWN = 0x0002 # left button down
                _MOUSEEVENTF_LEFTUP = 0x0004 # left button up
                _MOUSEEVENTF_RIGHTDOWN = 0x0008 # right button down
                _MOUSEEVENTF_RIGHTUP = 0x0010 # right button up
                _MOUSEEVENTF_MIDDLEDOWN = 0x0020 # middle button down
                _MOUSEEVENTF_MIDDLEUP = 0x0040 # middle button up
                _MOUSEEVENTF_ABSOLUTE = 0x8000 # absolute move
                _MOUSEEVENTF_XDOWN = 0x0080 # X button down
                _MOUSEEVENTF_XUP = 0x0100 # X button up
                _MOUSEEVENTF_WHEEL = 0x0800 # wheel button is rotated
                _MOUSEEVENTF_HWHEEL = 0x01000 # wheel button is tilted
            - x: integer value with x coordinate.
            - y: integer value with y coordinate.
            - data: integer value holding additional event data, for ex.:
              * If flags contains _MOUSEEVENTF_WHEEL, then data specifies the
                amount of wheel movement. A positive value indicates that the
                wheel was rotated forward, away from the user; a negative
                value indicates that the wheel was rotated backward, toward
                the user. One wheel click is defined as WHEEL_DELTA, which is
                120.
              * If flags contains _MOUSEEVENTF_HWHEEL, then data specifies the
                amount of wheel movement. A positive value indicates that the
                wheel was tilted to the right; a negative value indicates that
                the wheel was tilted to the left.
              * If flags contains _MOUSEEVENTF_XDOWN or _MOUSEEVENTF_XUP, then
                data specifies which X buttons were pressed or released. This
                value may be any combination of the following flags.
              * If flags is not _MOUSEEVENTF_WHEEL, _MOUSEEVENTF_XDOWN, or
                _MOUSEEVENTF_XUP, then data should be zero.
            - extra_info: integer value with additional value associated with
            the mouse event.

        Returns:
            - None
         N/A x_metric N/A N/A N/A N/A ctypes windll user32 GetSystemMetrics N/A self _SM_CXSCREEN N/A y_metric N/A N/A N/A N/A ctypes windll user32 GetSystemMetrics N/A self _SM_CYSCREEN N/A x_calc N/A N/A N/A 65536 x x_metric 1 N/A y_calc N/A N/A N/A 65536 y y_metric 1 N/A N/A N/A N/A N/A ctypes windll user32 mouse_event flags x_calc y_calc data extra_info N/A move N/A N/A self x y smooth N/A True N/A N/A N/A N/A WinUtils 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 N/A self _MOUSEEVENTF_MOVE N/A self _MOUSEEVENTF_ABSOLUTE N/A int intermediate_x N/A int intermediate_y 0 0 N/A drag N/A N/A self x1 y1 x2 y2 smooth N/A True N/A N/A N/A N/A WinUtils verify_xy_coordinates x1 y1 N/A N/A N/A WinUtils verify_xy_coordinates x2 y2 N/A N/A N/A self press_button x1 y1 N/A self LEFT_BUTTON N/A N/A N/A self move x2 y2 smooth smooth 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 WinUtils verify_xy_coordinates x y N/A N/A N/A WinUtils verify_mouse_button_name button_name N/A self _SUPPORTED_BUTTON_NAMES N/A N/A N/A self move x y N/A N/A N/A self _do_event N/A N/A self _compose_mouse_event button_name press True release False 0 0 0 0 N/A release_button N/A N/A self button_name N/A LEFT_BUTTON N/A N/A N/A N/A WinUtils verify_mouse_button_name button_name N/A self _SUPPORTED_BUTTON_NAMES N/A N/A N/A self _do_event N/A N/A self _compose_mouse_event button_name press False release True 0 0 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 WinUtils verify_xy_coordinates x y N/A N/A N/A WinUtils verify_mouse_button_name button_name N/A self _SUPPORTED_BUTTON_NAMES N/A N/A N/A self move x y N/A N/A N/A self _do_event N/A N/A self _compose_mouse_event button_name press True release True 0 0 0 0 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 WinUtils verify_xy_coordinates x y N/A N/A N/A WinUtils verify_mouse_button_name button_name N/A self _SUPPORTED_BUTTON_NAMES N/A N/A N/A self move x y N/A N/A N/A self _do_event N/A N/A self _compose_mouse_event button_name press True release True 0 0 0 0 N/A N/A N/A self _do_event N/A N/A self _compose_mouse_event button_name press True release True 0 0 0 0 N/A get_position N/A N/A self N/A N/A N/A obj_point N/A N/A N/A ctypes wintypes POINT N/A N/A N/A N/A N/A ctypes windll user32 GetCursorPos N/A N/A ctypes byref obj_point N/A N/A N/A obj_point x N/A obj_point y N/A N/A