Method wnd.findAll
Overload
Finds all matching windows.
public static wnd[] findAll(string name = null, string cn = null, WOwner of = default, WFlags flags = 0, 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. |
flags (WFlags) |
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
wnd[]
Array containing zero or more wnd. |
Exceptions
ArgumentException
|
Remarks
The list is sorted to match the Z order, however hidden windows (when using WFlags.HiddenToo) and IME windows are always after visible windows.