Indexer of HotkeyTriggers(+ 1 overload)
Overload
Adds a hotkey trigger.
public Action<HotkeyTriggerArgs> this[string hotkey, TKFlags flags = 0, string f_ = null, int l_ = 0] { set; }
Parameters
|
hotkey (string)
A hotkey, like with keys.send. See key names and operators.
Can contain 0 to 4 modifier keys ( |
|
flags (TKFlags)
Enum: ShareEvent, KeyModUp, LeftMod, RightMod, NoModOff, ExtendedYes, ExtendedNo, Numpad, NumpadNot. |
| f_ (string) |
| l_ (int) |
Exceptions
|
ArgumentException
Invalid hotkey string or flags. |
|
InvalidOperationException
Cannot add triggers after ActionTriggers.Run was called, until it returns. |
Property Value
Examples
See ActionTriggers.
Overload(top)
Adds a hotkey trigger.
public Action<HotkeyTriggerArgs> this[KKey key, string modKeys, TKFlags flags = 0, string f_ = null, int l_ = 0] { set; }
Parameters
| key (KKey) |
|
modKeys (string)
Modifier keys. See key names and operators.
Examples: |
|
flags (TKFlags)
Enum: ShareEvent, KeyModUp, LeftMod, RightMod, NoModOff, ExtendedYes, ExtendedNo, Numpad, NumpadNot. |
| f_ (string) |
| l_ (int) |
Exceptions
|
ArgumentException
Invalid modKeys string or flags. |
|
InvalidOperationException
Cannot add triggers after ActionTriggers.Run was called, until it returns. |