boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.74k stars 432 forks source link

How can I make this work on linux ? #612

Open TheCarpetMerchant opened 1 year ago

TheCarpetMerchant commented 1 year ago

keyboard.write('a') fails when not run with root access. However, running with root access fails silently without doing anything.

Broyojo commented 10 months ago

I experience this same issue with MacOS 13.5.1.

wolfuoa commented 10 months ago

Looks like this project cannot map to your operating system keyboard layout. Use key codes as documented by your platform and directly send the numbers as shown in keyboard.send(56) If you find a module that wrote the key codes to their respective characters, use that. Otherwise find documentation like this