Posted By: Stoyanov | Mar 19th, 2006 @ 7:30 AM
page 1 of 1
Comments: 0 | Views: 2700 | Downloads: 13
Download:Link for Window Enumerating Helper(0 Bytes)

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,
*[@c=IEFrame]/*[@c=WorkerW]/*[@c=ReBarWindow32]/*[@c=ComboBoxEx32]
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.

Current ToDo's:

  • Implement starting the search from a non-top-level window.
  • Implement obtaining handles to all child windows.

This is a work in progress, therefore I intend to develop these classes so that they can be used to manipulate windows, as well.

For more information, visit www.stoyanoff.info.

page 1 of 1
Comments: 0 | Views: 2700 | Downloads: 13