()
Get the current mouse position.

    Returns:
        (x, y) as integers
        None in the case of any error
Get the current mouse position.
Get the current mouse position .
def cursor_position():
    """Get the current mouse position.

    Returns:
        (x, y) as integers
        None in the case of any error
    """
    try:
        return win32api.GetCursorPos()
    except win32api.error:
        return None
def cursor_position ( ) : try : return win32api . GetCursorPos ( ) except win32api . error : return None