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

An error indicating `hotkey is registered' when starting keepass #42

Closed
taroxd opened this issue Feb 22, 2022 · 4 comments
Closed

An error indicating `hotkey is registered' when starting keepass #42

taroxd opened this issue Feb 22, 2022 · 4 comments

Comments

@taroxd
Copy link

taroxd commented Feb 22, 2022

Error Detail (The Chinese means `hotkey is registered'):

[Window Title]
KeePass

[Content]
The following plugin is incompatible with the current KeePass version:
C:\Users\taroxd\AppData\Local\KeePass\PluginCache\nltA12hROdxB9UF3AoZV\KeeOtp2.dll

Have a look at the plugin's website for an appropriate version.

[Expanded Information]
热键已注册。 (异常来自 HRESULT:0x80070581)
NHotkey
在 NHotkey.Hotkey.Register(IntPtr hwnd, String name)
在 NHotkey.HotkeyManagerBase.AddOrReplace(String name, UInt32 virtualKey, HotkeyFlags flags, EventHandler1 handler) 在 KeeOtp2.KeeOtp2Config.registerHotKey() 在 KeeOtp2.KeeOtp2Config.loadConfig() 在 KeeOtp2.KeeOtp2Ext.Initialize(IPluginHost host) 在 KeePass.Plugins.PluginManager.LoadPlugins(List1 lFiles, String strTypeName, String strDisplayFilePath, Boolean bSkipCacheFiles)
Void Register(IntPtr, System.String)

Inner:
热键已注册。 (异常来自 HRESULT:0x80070581)

OS: Windows 11 (Inside a Hyper-V virtual machine)
This error occurs even if I disabled the global/local hotkey in the configuration.
I am not relying on hotkeys, so maybe properly catch this exception can resolve the problem?

By the way, in makeplgx.bat, the first line contains @@ -1,117 +0,0 @@ which seems to be redundant.

@creckord
Copy link

creckord commented Mar 9, 2022

Same here. Any way to figure out which hotkey is already registered to which function?

@creckord
Copy link

creckord commented Mar 9, 2022

Figured it out. It's the global hotkey. It was already in use by another application.

I wasn't able to disable it through "Use global hotkey", because that disabled the local hotkey as well, so I reassigned it to something I'm unlikely to hit by accident.

@taroxd
Copy link
Author

taroxd commented Mar 12, 2022

Figured it out. It's the global hotkey. It was already in use by another application.

I wasn't able to disable it through "Use global hotkey", because that disabled the local hotkey as well, so I reassigned it to something I'm unlikely to hit by accident.

Thanks. I reassigned my global hotkey to another one and then disabled it, and now the annoying error disappeared. It is quite confusing that even if I disable the hotkey, the plugin still try to register it.

tiuub added a commit that referenced this issue Jul 4, 2022
@tiuub
Copy link
Owner

tiuub commented Jul 4, 2022

Hey, fixed this in the newest version 1.5.9. The plugin won't register a hotkey anymore if the global hotkey is deactivated. It also displays a more recognizeable error message, when the hotkey already is in use.

Kind regards
tiuub

@tiuub tiuub closed this as completed Jul 4, 2022
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

3 participants