Pynput press and hold | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Pynput press and hold

I'm currently working on a small project to simulate toggling. I'd like to know if it's even possible to handle press and hold in Python. e.g: If "a" is toggled it would hold "a" and go on like this "aaaaa"... until broken. I've tried using press and release, but somehow, they act the same. Any suggestions? Thanks

26th Jun 2018, 11:32 PM
Laki Jovanovic
Laki Jovanovic - avatar
1 Answer
0
Would be easier if you provided the code as well.
26th Jun 2018, 11:45 PM
Andre Daniel
Andre Daniel - avatar