Answers for "get x and y coordinates of mouse click python"

0

py get mouse coordinates

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

how to separate x and y from mouse position python

#just follow me

#xmousepos is a variable that assigns itsalf to the position of your cursor
#the [0] means the x position of the cursor [1] means the y position
#[1] is for the 2nd value of xmousepos / the x value
#[2] is for the 1st value of ymousepos / the y value
xmousepos=pygame.mouse.get_pos()[0]
ymousepos=pygame.mouse.get_pos()[1]

#i hope this helped yoy... now get back to work
Posted by: Guest on May-31-2021

Code answers related to "get x and y coordinates of mouse click python"

Python Answers by Framework

Browse Popular Code Answers by Language