Method TriggerScopes.NotWindow(+ 1 overload)
Overload
Sets scope "not this window". Hotkey, autotext and mouse triggers added afterwards will not work when the specified window is active.
public TriggerScope NotWindow(string name = null, string cn = null, WOwner of = default, Func<wnd, bool> also = null, WContains contains = default)
Parameters
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:
|
Returns
TriggerScope
Returns an object that can be later passed to TriggerScopes.Again to reuse this scope. |
Exceptions
ArgumentException
|
Examples
Overload(top)
Sets scope "not this window". Hotkey, autotext and mouse triggers added afterwards will not work when the specified window is active.
public TriggerScope NotWindow(wndFinder f)
Parameters
f (wndFinder) |
Returns
TriggerScope
Returns an object that can be later passed to TriggerScopes.Again to reuse this scope. |