A class for finding windows using the windows API.
| C# | Visual Basic | Visual C++ |
public class Win32Finder
Public Class Win32Finder
public ref class Win32Finder
| All Members | Constructors | Methods | Fields | ||
| Icon | Member | Description |
|---|---|---|
| Win32Finder(String) |
Constructor
| |
| Equals(Object) | (Inherited from Object.) | |
| escape(String) |
Escapes special characters in a string so it can be used as a finder property.
| |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| FindFirst(IntPtr) |
Finds the first item that matches this finder
| |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| index |
The index of the object to be located with this finder.
| |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| parent |
A nested finder (if there is one) - in{...}
| |
| ToString()()() | (Inherited from Object.) | |
| windowClass |
The Win32 class of the object to be located with this finder.
| |
| windowText |
The text of the object to be located with this finder.
|
Win32 finder strings can contain the following property identifiers:
Class - The Win32 ClassName of the object to find [Win32Automation.GetWin32ClassName]
Text - The text propery of the object to find [Win32Automation.GetWindowText]
Index - The index of this object within its parent (Class and Text are ignored if Index is used) [Win32Automation.GetChildWindows]
Win32 finders can be nested using in{} statements. When searching for an object
this class will locate the innermost "in{}" statement and find that object. Then it will
use it as the starting point to search for the next innermost "in" and so on till the
outermost finder object is found.
Win32:Class=Button,Text=7,in{Class=SciCalc,Text=Calculator}
Win32:Index=65,in{Class=SciCalc,Text=Calculator}
| Object | |
| Win32Finder | |