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

How to prevent inputing into textbox? #14

Open
xiedongweo opened this issue Mar 4, 2022 · 3 comments
Open

How to prevent inputing into textbox? #14

xiedongweo opened this issue Mar 4, 2022 · 3 comments

Comments

@xiedongweo
Copy link

I' m using this library to receive input message and handle it in background. But if the textbox got focused, the characters will still be typing there. How to prevent it?

@Slion
Copy link
Owner

Slion commented Mar 4, 2022

If you want to intercept some of the input I guess you could try not calling the default window procedure when you receive the WM_INPUT you want to intercept.

@xiedongweo
Copy link
Author

Could you provide a code sample?

@Slion
Copy link
Owner

Slion commented Mar 5, 2022

Read the docs and looks for samples online maybe:
https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-input

I'm under the impression what you are trying to achieve has little to do with this library itself.

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

2 participants