Комментарии:
How to quit progame?
Ответить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
ОтветитьI keep getting an error that says "mouse.Listener" is not defined. Where do we do that
Ответитьfrom pynput import *
def get_coords (x, y):
print(x, y)
with mouse.Listener(on_move=get_coords) as listen:
listen.join()
👍👏👏
Ответить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
Ответить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
How to get mouse position with defined frequency?
Ответить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)
<ipython-input-3-26b895c09808> 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
I want to store these coordinates points to a variable so that i can make a plot. Can you show how?
Ответитьthanks man, really helped
Ответитьhow to stop?)
Ответить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?
Thank you! Good and straight forward tutorial. 👍
ОтветитьHi there! Do you know how could I save those coordinates into variables?
Ответитьwhat application are you using to write the code?
Ответитьthanks man, this worked perfectly for what i'm working on
Ответить