-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Get "Cannot install keyboard listener" error and other issues #4323
Comments
@enricogior, what do we need feedback here on? |
@enricogior My Keyboard is USB keyboard that I do switch between my desktop PC (which has Windows and PowerToys) and laptop. I do this by removing from my PC USB port and insert into laptop periodically. However, I can confirm that when I have inserted into my desktop PC, and rebooted my machine, I still get the error message I have posted above. Also, please note that the SHIFT key and drag to get the zones showing works. I believe it is related to how PowerToys works. I didn't have this issue earlier (v0.18.1), which is why I have my custom zones already set up. I can no longer edit my zones using "Launch Zones Editor". The following code is worth looking at: https://github.com/microsoft/PowerToys/blob/master/src/modules/fancyzones/dll/dllmain.cpp as that has the error for cannot install keyboard listener for fancy zones. I can confirm my desktop pc works fine whenever I have the USB keyboard into the USB port. I don't encounter any keyboard related issues with any other application. Ideally, I do not want to uninstall and install PowerToys. |
Okay I have an update on FancyZones. I upgraded to v0.19.0. I got the same issue. So I uninstalled PowerToys, and then reinstalled (using v0.19.0 release) Now the following work/don't work:
Also note I have a new USB keyboard, and that has made no difference in preventing the error message box on keyboard listener coming up. Also note, that the keyboard works completely fine on all other applications. |
@ukWaqas |
@enricogior Thanks for the response. Are there some tests I can run to isolate the issue? Perhaps show some log information? It still doesn't example why it was working fine for the first few weeks of me using PowerToys (v0.18.1). I only really got this issue since v0.18.2, but having said that, I had only been using v0.18.1 for a couple of weeks. Could it be a Windows Update that played around with the keyboard hook? Strange why the keyboard functionality in other features of PowerToys like PT Run worked fine in v0.18.2. |
@ukWaqas |
Will this issue be addressed - the latest version of PowerToys v0.21.1, the following options crash:
Unsure if they are related. What needs to be done to resolve this issue? In previous reply, @enricogior mentioned that a small test app that reproduced problem outside of PT is a possibility. When will this be ready? |
This PR #6454 will help addresses the problem producing a better error report. |
Issue #5414 helped us determine there are some apps like SentryBay that basically are preventing us from doing the key hooks. is your PC managed by your company? |
@crutkas |
Thanks @crutkas for your response. I think you’re right - is the sentryBay application! It’s my personal desktop but I do use it for work purposes from time to time via the sentrybay application. I’ll close this issue as I think that is the cause. This issue has been closed on the basis that sentry application interferes with the normal working of PT. The only current resolution for this issue is to remove sentrybay application from windows. |
Environment
Steps to reproduce
Not particularly sure on the steps to re-produce, as it was working at some point. It always happens on my machine, but cannot vouch if it will always happen on everyone elses.
The only thing I can assume could have resulted this was because I disabled "Run at startup", and then re-enabled it to fix another issue (UAC Promt on boot #2578) [sic]
However, whenever Power Toys launches now, I get the following message box popup:
Furthermore, I notice that "Launch Zones Editor" in FancyZones stopped working as well.
The Win + ' key does not work, but the holding of shift to activate zones works fine. As the zones were already created by me when they were working, I still have the same zone layout, but as mentioned, I cannot launch the Zones Editor anymore so if I wanted to change this, I cannot.
Expected behavior
Work as before. That is I should not get the "Cannot install keyboard listener." dialog, and Zones editor should work.
Actual behavior
I get the following message at startup:
And nothing happens when I click Launch Zones Editor
Screenshots
The text was updated successfully, but these errors were encountered: