How to Get Mouse Coordinates (x, y) with Python

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Hi there! Do you know how could I save those coordinates into variables?

javierdebenavides
Автор

is there a way to make it just take the coordinate when we start it or its only doing it until we exit the program

dtar
Автор

TypeError: '_thread._ThreadHandle' object is not callable

xu
Автор

I want to store these coordinates points to a variable so that i can make a plot. Can you show how?

enamulhaque
Автор

Whenever i try do "pip install pynput" it just comes out with:
'pip' is not recognized as an internal or external command,
operable program or batch file.
Any way to fix this?

normaldude_xd
Автор

I DON'T WANT THE MOUSE MOVEMENT ON TERMINAL, I WANT THE MOVEMENTS TO BE STORED IN EXCEL, how can we do that...can u pls help me out

samreena
Автор

I keep getting an error that says "mouse.Listener" is not defined. Where do we do that

johnd
Автор

How to get mouse position with defined frequency?

alainboyadjian
Автор

how to stop this running program
I'm running this program in VS Code, and I've tried to stop program using ctrl+c.
but it won't work. any help appreciated
@WebDevPro

vishalsardar
Автор

Hey: how to solve this error:
def get_coords(x, y):
print("Now at: {}" .format((x, y)))

with mouse.Listener(on_move = get_coords) as listen:
listen.Join()
plt.show()

NameError Traceback (most recent call last)
in <module>
2 print("Now at: {}" .format((x, y)))
3
----> 4 with mouse.Listener(on_move = get_coords) as listen:
5 listen.Join()
6 plt.show()

NameError: name 'mouse' is not defined

lijoso
Автор

what application are you using to write the code?

lemonsarejuicy
visit shbcf.ru