Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you provide an example with all the key presses suppressed? #32

Open
jabobian opened this issue Dec 29, 2022 · 0 comments
Open

Could you provide an example with all the key presses suppressed? #32

jabobian opened this issue Dec 29, 2022 · 0 comments

Comments

@jabobian
Copy link

jabobian commented Dec 29, 2022

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. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant