mouse info python code example
Example 1: get mouse postition python
>>> import pyautogui
>>> pyautogui.position()
Example 2: mouse module for python
# drag from (0, 0) to (100, 100) relatively with a duration of 0.1s
mouse.drag(0, 0, 100, 100, absolute=False, duration=0.1)