src/aoikhotkey/util/mouse_winos.py
def move_cursor(self, position):
        """
        Move cursor to given position.

        :param position: Position tuple of (x, y).

        :return: None.
        """
        # Get x and y coordinates
        x, y = position

        # Get old position
        old_pos = self.get_cursor_position()

        # Get x coordinate
        x = x if (x != -1) else old_pos[0]

        # Get y coordinate
        y = y if (y != -1) else old_pos[1]

        # Send mouse event
        self._send_mouse_event(
            self.MOUSEEVENTF_MOVE + self.MOUSEEVENTF_ABSOLUTE, x, y, 0, 0
        )

        Move cursor to given position.

        :param position: Position tuple of (x, y).

        :return: None.
        
Move cursor to given position.
Move cursor to given position .
def move_cursor(self, position):
        x, y = position
        old_pos = self.get_cursor_position()
        x = x if (x != -1) else old_pos[0]
        y = y if (y != -1) else old_pos[1]
        self._send_mouse_event(
            self.MOUSEEVENTF_MOVE + self.MOUSEEVENTF_ABSOLUTE, x, y, 0, 0
        )
def move_cursor ( self , position ) : x , y = position old_pos = self . get_cursor_position ( ) x = x if ( x != - 1 ) else old_pos [ 0 ] y = y if ( y != - 1 ) else old_pos [ 1 ] self . _send_mouse_event ( self . MOUSEEVENTF_MOVE + self . MOUSEEVENTF_ABSOLUTE , x , y , 0 , 0 )
Move cursor to given position.
Move cursor to given position .
"""
        Move cursor to given position.

        :param position: Position tuple of (x, y).

        :return: None.
        """ # Get x and y coordinates # Get old position # Get x coordinate # Get y coordinate # Send mouse event
None
self
position
Position tuple of (x, y).
Position tuple of ( x y ) .