Exemple #1
0
 /// <summary>
 /// Creates hotkey for non-hooked mode.
 /// </summary>
 public Hotkey(string name, KeyCombo keyCombo, Action action)
     : this(keyCombo, action)
 {
     KeyCombo.Name = name;
 }
Exemple #2
0
 /// <summary>
 /// Creates hotkey for hooked mode.
 /// </summary>
 public Hotkey(KeyCombo keyCombo, Action action)
 {
     KeyCombo = keyCombo;
     _action  = action;
     Id       = (int)HotkeyInterop.AddAtom(Guid.NewGuid().ToString());
 }