Answers for "how to get cursor cordinates in python"

2

python get current mouse position

from pynput.mouse import Button, Controller
mouse = Controller()
current_mouse_position = mouse.position
print(current_mouse_position)
Posted by: Guest on February-23-2020
0

py get mouse coordinates

import pyautogui
pos = pyautogui.position()
Posted by: Guest on November-06-2020

Code answers related to "how to get cursor cordinates in python"

Python Answers by Framework

Browse Popular Code Answers by Language