Slion / SharpLibHid

C# HID Library using Windows Raw Input.
http://publish.slions.net/HidDemo/
58 stars 19 forks source link

How to prevent inputing into textbox? #14

Open xiedongweo opened 2 years ago

xiedongweo commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Could you provide a code sample?

Slion commented 2 years ago

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.