Avasam
Avasam
.pyi files (type stubs) are the way to go in this case. Here's auto generated ones by Pylance. I've already filled in some that I use, namely `send()`, `hook_key()`, `read_event()`...
> Right now the library supports even Python 2.7, and type hints would eliminate that feature. @boppreh You can have inline typing in Python2 code by using type comments https://mypy.readthedocs.io/en/stable/python2.html...
3rd party keyboard type stubs (by myself) have been added to typeshed https://github.com/python/typeshed/pull/8666 Of course, this will only support the version available on PyPI, which is now far behind master....
May or may not be related. Crashes on MacOS for me as well: #562
@AminDar The issue in on runtime, not on install. `sudo python3 your-app.py` However this will cause issues with graphical apps that use X as the root user won't have access...
Following the discussion here and the linked stackoverflow answer, I ran the following: ```sh sudo usermod -a -G tty,input $USER sudo chmod +0666 /dev/uinput echo 'KERNEL=="uinput", TAG+="uaccess""' > /etc/udev/rules.d/50-uinput.rules echo...
> But PyAutoGUI cant read keystrokes, that's what I am looking for. https://pypi.org/project/pynput/ It can control and monitor mouse and keyboard. It can also send hotkeys.
The user needs to be in groups `tty` to avoid crashing at all (generating table from dumpkeys) `input` for their keystrokes to be registered AND have read/write access to `/dev/uinput`...
> Would you be interested in an X-based global hotkey capture? Absolutely. I already rely on X anyway to find windows location and record them. Telling my users to add...
May or may not be related. Crashes on MacOS for me as well: #562