Answer the question
In order to leave comments, you need to log in
How to track 1 click?
I wrote a script that reads the mouse coordinates when a button is clicked and writes it to a file. And I used keyboard and pyautogui for this. But in the loop, when I press the key, the coordinates are written to the file many times. How to fix it?
Answer the question
In order to leave comments, you need to log in
Read the documentation - and at least use keyboard.hook instead of keyboard.is_pressed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question