Home > Software engineering >  How to make button presser on Python
How to make button presser on Python

Time:07-06

I have a question, is it possible to use python to make it so that when pressing the right mouse button, some key on the keyboard is pressed (for example, the G key)

CodePudding user response:

Not sure if this is the best place to ask such question but I'll answer and whatever happens to the thread happens.

From my experience, I think the easiest and most accessible module for keyboard control would be 'keyboard' by BoppreH. I've used it and had no issues. Good cross-platform choice for Windows and Linux, if that's a consideration.

Here are a couple of resources. Should be easy enough to integrate.

A friendly suggestion for next time, friend. Please try looking online first. Happy Coding :)

https://pypi.org/project/keyboard/

https://github.com/boppreh/keyboard

  • Related