FindWindow Method

Applies to:  Windows collection
See also:  FindNextWindow method

Finds the first window in a collection matching the specified criteria.

Syntax:

Set objWindow = object.FindNextWindow(Caption, ClassName)

The FindWindow method syntax has these parts:

Part Description
objWindow An object variable to hold the window you want to find.
object The name of a Windows collection.
Caption A caption to search for.  A search can be performed on partial captions using the asterisk * as a wildcard.
ClassName Optional.  A class name to search for.

Examples:

Trapping keyboard events

Trapping mouse events

 

Home Copyright and Disclaimer