Jump to content

Recommended Posts

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

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();

 

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...