Example #1
0
        public void RegisterOnHotKey(Action action, Hotkey hotkey)
        {
            actions.Add(hotkey, action);

            //Register action
            hook.RegisterHotKey(hotkey);
            Console.WriteLine("Registered:" + hotkey.ToString());
        }
Example #2
0
        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);
        }
Example #3
0
 public void RegisterOnStartTransaction(NewTransactionContext context, Action action)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public void RegisterOnFocusChanged(FocusChangedContext context, Action action)
 {
     throw new NotImplementedException();
 }
Example #5
0
 public void RegisterOnHotKey(Hotkey hotkey, Action action)
 {
     actions.Add(hotkey, action);
 }