Property WindowTriggers.this(+ 1 overload)
Overload
Adds a window trigger and its action.
public Action<WindowTriggerArgs> this[TWEvent winEvent, string name = null, string cn = null, WOwner of = default, Func<wnd, bool> also = null, WContains contains = default, TWFlags flags = 0, TWLater later = 0, string f_ = null, int l_ = 0] { set; }
Parameters
winEvent (TWEvent)
Trigger event. |
name (string)
Window name. Usually it is the title bar text.
String format: wildcard expression.
|
cn (string)
Window class name.
String format: wildcard expression.
|
of (WOwner)
Owner window, program or thread. Depends on argument type:
See wnd.getwnd.Owner, wnd.ProcessId, process.thisProcessId, wnd.ThreadId, process.thisThreadId. |
also (Func<wnd, bool>)
Callback function. Called for each matching window.
It can evaluate more properties of the window and return |
contains (WContains)
Defines an object that must be in the client area of the window:
|
flags (TWFlags)
Trigger flags. |
later (TWLater)
Can optionally specify one or more additional events.
This starts to work when the primary trigger is activated, and works only for that window.
For example, to be notified when the window is closed or renamed, specify |
f_ (string) |
l_ (int) |
Exceptions
InvalidOperationException
Cannot add triggers after ActionTriggers.Run was called, until it returns. |
ArgumentException
See wnd.find. |
Property Value
See Also
Overload(top)
Adds a window trigger and its action.
public Action<WindowTriggerArgs> this[TWEvent winEvent, wndFinder f, TWFlags flags = 0, TWLater later = 0, string f_ = null, int l_ = 0] { set; }
Parameters
winEvent (TWEvent)
Trigger event. |
f (wndFinder) |
flags (TWFlags)
Trigger flags. |
later (TWLater)
Can optionally specify one or more additional events.
This starts to work when the primary trigger is activated, and works only for that window.
For example, to be notified when the window is closed or renamed, specify |
f_ (string) |
l_ (int) |
Exceptions
InvalidOperationException
Cannot add triggers after ActionTriggers.Run was called, until it returns. |