Encapsulates the AutoMate™ action in the “Window” group, “Focus Window Containing.” Same as Action.FocusEx, except contains support for checking the text contents inside a window. If the text is found, the method brings the window in front of all the other windows on the system.
Declaration
procedure FindText(Window_: OleVariant; ExactMatch: OleVariant; HandlePassed: OleVariant; SearchText: OleVariant; SearchExact: OleVariant); safecall;
Description
Specify the title of the window to focus in the Window Parameter, the text to search for inside the dialog box in the SearchText parameter, and whether it should match exactly in the SearchExact parameter.
NOTE: To focus a window based on the handle of a launched EXE file, use BASIC language command AppActivate in conjunction with the Shell command.