how to get mouse coordinates in python code example
Example 1: python get current mouse position
from pynput.mouse import Button, Controller
mouse = Controller()
current_mouse_position = mouse.position
print(current_mouse_position)
Example 2: py get mouse coordinates
import pyautogui
pos = pyautogui.position()