Relative Content

Tag Archive for pythonpynput

Move between floors

I’m trying to make a sort of nethack inspired type game and I’m trying to figure out the moving up and down(I know the current code is probably terribly inefficient)(also sorry if this question is formatted weird this is my first ask)

Python pynput not working as expected on osx

I’m trying to catch keystrokes in a python script, but it ONLY catches modifier keys (ctrl, cmd, alt) and not ordinary alphanumerical keys. Running on Mac Sonoma 14.1.1, Python 3.10.6.

Is it possible to generate hardware level output in Python using Pynput?

Like the title says I would like to generate a sequence of keyboard presses from a input.
I have managed to do so and when I open notepad it shows that it works but once i switch to the game it stops working.
The reason from what I have been able to find is that I need to generate hardware level output in some way.
I am very new to python and the fact that I managed to make a code that works and is relatively compact is still amazing to me