iMod 99 Posted April 6, 2016 Share Posted April 6, 2016 Hi, i made a new instance of "KeyboardHook" private KeyboardHook _hookKeybindings = new KeyboardHook(); // Subscribe this._hookKeybindings.KeyPressed += HookKeybindings_KeyPressed; // Register this._hookKeybindings.RegisterHotKey(ModifierKeys.Alt, Keys.R); Result in the log: "[Keyboard Hook] Couldn’t register the hot key." Any clue why it can't register this key binding? All the sub + reg is in the init method. Thanks, iMod Link to comment https://wrobot.eu/forums/topic/2889-wotlk-keyboard-hook-couldn%E2%80%99t-register-the-hot-key/ Share on other sites More sharing options...
Droidz 2738 Posted April 7, 2016 Share Posted April 7, 2016 Hello, You get this message (Couldn...) all the time? Even at the first WRobot start (after compturer (re)start?) If yes, this keybinding is used by another software. If this works only the first time, it is because you don't dispose it, add this code before the end of your code: this._hookKeybindings.Dispose(); iMod 1 Link to comment https://wrobot.eu/forums/topic/2889-wotlk-keyboard-hook-couldn%E2%80%99t-register-the-hot-key/#findComment-13264 Share on other sites More sharing options...
iMod 99 Posted April 20, 2016 Author Share Posted April 20, 2016 Thanks ill try it out Link to comment https://wrobot.eu/forums/topic/2889-wotlk-keyboard-hook-couldn%E2%80%99t-register-the-hot-key/#findComment-13439 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now