Nicholas Ficara
Nicholas Ficara

Reputation: 86

Keybinds in python

I want to make a key bind that will work even when I am not clicked onto the program gui or minimized. It am trying to make an auto clicker and want to be able to turn it on and off mid game without going on the window.

Upvotes: 1

Views: 4868

Answers (1)

Mohd
Mohd

Reputation: 5613

You can try keyboard package where you can set hotkeys (keybinds) to run specific commands. However, it doesn't have suport for mouse yet as mentioned in the description. On the other hand, PyHook package supports keyboard and mouse so it might be what you're looking for.

Upvotes: 1

Related Questions