public void RegisterOnHotKey(Action action, Hotkey hotkey) { actions.Add(hotkey, action); //Register action hook.RegisterHotKey(hotkey); Console.WriteLine("Registered:" + hotkey.ToString()); }
public TestForm(Action action) { InitializeComponent(); actionToTest = action; // register the event that is fired after the key press. hook.KeyPressed += Hook_KeyPressed; //CTRL+F12 // hook.RegisterHotKey(ModifierKeys.Control, Keys.F12); }
public void RegisterOnStartTransaction(NewTransactionContext context, Action action) { throw new NotImplementedException(); }
public void RegisterOnFocusChanged(FocusChangedContext context, Action action) { throw new NotImplementedException(); }
public void RegisterOnHotKey(Hotkey hotkey, Action action) { actions.Add(hotkey, action); }