SharpLibHid icon indicating copy to clipboard operation
SharpLibHid copied to clipboard

How to prevent inputing into textbox?

Open xiedongweo opened this issue 3 years ago • 3 comments

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?

xiedongweo avatar Mar 04 '22 09:03 xiedongweo

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.

Slion avatar Mar 04 '22 16:03 Slion

Could you provide a code sample?

xiedongweo avatar Mar 05 '22 06:03 xiedongweo

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.

Slion avatar Mar 05 '22 07:03 Slion