()
return (d.x, d.y)
Get the current mouse position.

    Returns:
        Tuple of the x and y coordinates of the mouse cursor.
Get the current mouse position.
Get the current mouse position .
def cursor_position():
    """Get the current mouse position.

    Returns:
        Tuple of the x and y coordinates of the mouse cursor.
    """
    d = NSEvent.mouseLocation()
    return (d.x, d.y)
def cursor_position ( ) : d = NSEvent . mouseLocation ( ) return ( d . x , d . y )