FindWindow()
Locates the handle a Windows application.
Syntax
FindWindow([<cClass>], <cName>) --> nHandle
Arguments
<cClass> --> is the optional name of the Window's class.
<cName> --> is the name (title) of the window to find.
Returns
The handle number of the matching window is returned. If no match is found zero is returned.
Description
This is a special purpose function designed to retrieve the handle number of a window. This would be useful to set-up a communications link with another running application. Once this link was established it might be possible to communicate with it via the PostMessage() command.
Example
In this example if the window with the title "Fax Manager" is found, a message box is displayed:
If FindWindow(, "Fax Manager") # 0
Echo("Fax Manager found!")
Endif
____________________________
Related Topics: