Indexer of MouseTriggers(+ 3 overloads)
Overload
Adds a mouse click trigger.
public Action<MouseTriggerArgs> this[TMClick button, string modKeys = null, TMFlags flags = 0, string f_ = null, int l_ = 0] { set; }
Parameters
|
button (TMClick)
Enum: Left, Right, Middle, X1, X2. |
|
modKeys (string)
Modifier keys. See key names and operators.
Examples: |
|
flags (TMFlags)
Enum: ShareEvent, ButtonModUp, LeftMod, RightMod. |
| f_ (string) |
| l_ (int) |
Exceptions
|
ArgumentException
Invalid modKeys string or flags. |
|
InvalidOperationException
Cannot add triggers after ActionTriggers.Run was called, until it returns. |
Property Value
Examples
See ActionTriggers.
Overload(next)
Adds a mouse wheel trigger.
public Action<MouseTriggerArgs> this[TMWheel direction, string modKeys = null, TMFlags flags = 0, string f_ = null, int l_ = 0] { set; }
Parameters
|
direction (TMWheel)
Enum: Forward, Backward, Left, Right. |
|
modKeys (string)
Modifier keys. See key names and operators.
Examples: |
|
flags (TMFlags)
Enum: ShareEvent, ButtonModUp, LeftMod, RightMod. |
| f_ (string) |
| l_ (int) |
Exceptions
|
ArgumentException
Invalid modKeys string or flags. |
|
InvalidOperationException
Cannot add triggers after ActionTriggers.Run was called, until it returns. |
Property Value
Examples
See ActionTriggers.
Overload(next)
Adds a mouse screen edge trigger.
public Action<MouseTriggerArgs> this[TMEdge edge, string modKeys = null, TMFlags flags = 0, screen screen = default, string f_ = null, int l_ = 0, string a1_ = null] { set; }
Parameters
|
edge (TMEdge)
Enum: Top, TopInCenter50, TopInLeft25, TopInRight25, Bottom, BottomInCenter50, BottomInLeft25, BottomInRight25, Left, LeftInCenter50, LeftInTop25, LeftInBottom25, Right, RightInCenter50, RightInTop25, RightInBottom25. |
|
modKeys (string)
Modifier keys. See key names and operators.
Examples: |
|
flags (TMFlags)
Enum: ShareEvent, ButtonModUp, LeftMod, RightMod. |
|
screen (screen)
The trigger will work in this screen (display monitor). Default: the primary screen.
Should be lazy or default; else the function calls print.warning.
Examples: |
| f_ (string) |
| l_ (int) |
| a1_ (string) |
Exceptions
|
ArgumentException
Invalid modKeys string or flags. |
|
InvalidOperationException
Cannot add triggers after ActionTriggers.Run was called, until it returns. |
Property Value
Examples
See ActionTriggers.
Overload(top)
Adds a mouse move trigger.
public Action<MouseTriggerArgs> this[TMMove move, string modKeys = null, TMFlags flags = 0, screen screen = default, string f_ = null, int l_ = 0, string a1_ = null] { set; }
Parameters
|
move (TMMove)
Enum: RightLeft, RightLeftInCenter50, RightLeftInTop25, RightLeftInBottom25, LeftRight, LeftRightInCenter50, LeftRightInTop25, LeftRightInBottom25, UpDown, UpDownInCenter50, UpDownInLeft25, UpDownInRight25, DownUp, DownUpInCenter50, DownUpInLeft25, DownUpInRight25. |
|
modKeys (string)
Modifier keys. See key names and operators.
Examples: |
|
flags (TMFlags)
Enum: ShareEvent, ButtonModUp, LeftMod, RightMod. |
|
screen (screen)
The trigger will work in this screen (display monitor). Default: the primary screen.
Should be lazy or default; else the function calls print.warning.
Examples: |
| f_ (string) |
| l_ (int) |
| a1_ (string) |
Exceptions
|
ArgumentException
Invalid modKeys string or flags. |
|
InvalidOperationException
Cannot add triggers after ActionTriggers.Run was called, until it returns. |
Property Value
Examples
See ActionTriggers.