wManager.Wow.Helpers Namespace
WRobot

KeyboardHook Class

Registers a hot key with Windows.

Examples


C#
KeyboardHook hookKeybindingsPause = new KeyboardHook();
hookKeybindingsPause.RegisterHotKey(ModifierKeys.Alt, Keys.X);
hookKeybindingsPause.KeyPressed += delegate(object sender, KeyPressedEventArgs args)
{
     Products.InPause = !Products.InPause;
};
 // ....
hookKeybindingsPause.Dispose();

Namespace:  robotManager.Helpful
Assembly:  robotManager (in robotManager.dll)

Syntax


public sealed class KeyboardHook : IDisposable
Public NotInheritable Class KeyboardHook _
	Implements IDisposable
public ref class KeyboardHook sealed : IDisposable

Inheritance Hierarchy


Object
  robotManager.Helpful..::..KeyboardHook