how to get the position of your mouse python code example
Example 1: get mouse postition python
>>> import pyautogui
>>> pyautogui.position()
Example 2: python get current mouse position
from pynput.mouse import Button, Controller
mouse = Controller()
current_mouse_position = mouse.position
print(current_mouse_position)