Show / Hide Table of Contents

Class wndChildFinder

Finds window controls (child windows). Contains name and other parameters of controls to find.

public class wndChildFinder
Remarks

Can be used instead of wnd.Child or wnd.ChildAll. Also can be used to find window that contains certain control, like in examples.

Examples

Find window that contains certain control, and get the control too.

var cf = new wndChildFinder("Password*", "Static");
wnd w = wnd.find(cn: "#32770", also: t => t.HasChild(cf));
print.it(w);
print.it(cf.Result);

The same with parameter contains.

var cf = new wndChildFinder("Password*", "Static");
wnd w = wnd.find(cn: "#32770", contains: cf);
print.it(w);
print.it(cf.Result);

Namespace: Au
Assembly: Au.dll
Inheritance
object
wndChildFinder

Constructors

Name Description
wndChildFinder(string, string, WCFlags, int?, Func<wnd, bool>, int)

See wnd.Child.

Properties

Name Description
Result

The found control.

Methods

Name Description
Exists(wnd)

Finds the specified child control, like wnd.Child.

Exists(wnd, Seconds)

Finds the specified child control, like wnd.Child. Can wait and throw NotFoundException.

Find(wnd)

Finds the specified child control, like wnd.Child.

Find(wnd, Seconds)

Finds the specified child control, like wnd.Child. Can wait and throw NotFoundException.

FindAll(wnd)

Finds all matching child controls, like wnd.ChildAll.

FindAllInList(IEnumerable<wnd>, wnd)

Finds all matching controls in a list of controls.

FindInList(IEnumerable<wnd>, wnd)

Finds the specified control in a list of controls. The wndChildFinder.Result property will be the control.

IsMatch(wnd, wnd)

Returns true if control c properties match the specified properties.

ToString()