The archive contains classes that can be used to enumerate and/or find windows using their titles, class names or handles.
The Helper.GetWindows() function takes one parameter, a window expression string, representing the window or controls’ hierarchy. For instance,
can be used to obtain all Internet Explorer (6.*) windows’ URLs.
Extended usage is available in the “Expressions (Usage).txt” file.
Code is compatible with both .NET Framework v1.* and v2.0; however, the sample solution file is created using Microsoft Visual Studio 2005.
- Implement starting the search from a non-top-level window.
- Implement obtaining handles to all child windows.
The source code, including a sample application, is available here