Window Enumerating Helper
Published March 19th, 2006 in Programming[Cross-posted in the Code section]
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.
ToDo’s:
- 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
Search
You are currently browsing the weblog archives.
About
Stanimir Stoyanov is a programmer, software beta tester, and Windows enthusiast. Read More...
Currently, he is administering AeroXperience and coding using Visual Studio 2008 on Windows Vista. He is looking forward to testing Windows 7 soon.
No Responses to “Window Enumerating Helper”
Please Wait
Leave a Reply