Method wnd.findFast
Overload
Finds a top-level window and returns its handle as wnd.
public static wnd findFast(string name = null, string cn = null, bool messageOnly = false, wnd wAfter = default)
Parameters
name (string)
Name.
Full, case-insensitive. Wildcard etc not supported.
|
cn (string)
Class name.
Full, case-insensitive. Wildcard etc not supported.
|
messageOnly (bool)
Search only message-only windows. |
wAfter (wnd)
If used, starts searching from the next window in the Z order. |
Returns
Remarks
Calls API FindWindowEx. Faster than wnd.find, which uses API EnumWindows. Finds hidden windows too. Supports lastError. It is not recommended to use this function in a loop to enumerate windows. It would be unreliable because window positions in the Z order can be changed while enumerating. Also then it would be slower than Find and FindAll.