Closed TolikPylypchuk closed 1 year ago
Originally answered in the discussion:
Hi! Thanks for asking! This looks like a problem with libuiohook, or even Windows itself. It sounds similar to issue #59 - what's described there is that a modifier key can get stuck in the pressed state. I will look into it.
As for your comments:
As for your questions:
TaskPoolGlobalHook
- unlike SimpleGlobalHook
, it will run your event handlers in a separate thread, so it can take as long as it needs.I could reproduce this issue (typing really fast and seeing that keys sometimes remained in the pressed state), but I don't know why that happens and how to fix that. Googling doesn't help either. I think this is a problem with Windows itself, but not sure.
So, I don't really know what to do about this issue. I'll try googling some more and trying to debug it further, but no promises about the result.
Hi @tkefauver! I may have fixed the issue in the latest build of SharpHook - it's hard to know since the issue itself is hard to reproduce. Could you please download the latest libuiohook binary and replace it directly in the bin folder of your application to verify that it works for you? If the issue is indeed fixed, then I'll release version 5.1.0 soon (hopefully).
You can get the latest libuiohook binary from the latest GitHub Actions artifact. Download libuiohook-build
and inside it windows/<your arch>/bin/uiohook.dll
is the file you need.
@TolikPylypchuk Adding it now and will let you know how it goes... Fingers crossed!
I released version 5.1.0 today which should contain the fix for this issue (at least it's not reproducible for me anymore), so this issue can be closed. If it doesn't fix the issue after all, then we can reopen this issue.
@TolikPylypchuk Yes I'm almost sure its fixed now! Thank you so much for working it out 🏆
Discussed in https://github.com/TolikPylypchuk/SharpHook/discussions/60