pyxhook
pyxhook copied to clipboard
Could you provide an example with all the key presses suppressed?
When I use pynput package, with Suppress=True, it is found that only key input inside the terminal is suppressed. But I want all key presses (in any app which has the focus) are suppressed for a while (untill some conditions meet). For background information please see here
I find no direct examples on XGrabKeyboard and XUnGrabKeyboard. But I guess pyxhook is based on xlib, and you may be able to help me to code an example. :-)