Win KeyBoard Shortcuts .NET

Win KeyBoard Shortcuts .NET

KeyBoardShortcut is a library written in C #. NET that allows you to capture keyboard events on windows and handle them in our CLR application.

Example:

  1. KeyboardShortcut hook = new KeyboardShortcut();
  2. hook.RegisterHotKey(ModifierKeys.Control, System.Windows.Forms.Keys.I);
  3. hook.KeyPressed +=new EventHandler(hook_KeyPressed);
  4. public void hook_KeyPressed(object sender, KeyPressedEventArgs e)
  5. {
  6. // handle event
  7. }

As you can see is quite simple to use, here’s the sources and the compiled binary:

I hope you like it!

Win KeyBoard Shortcuts .NET ← Back

What do you think?

Name

E-Mail

Website

Message