Looks for a specific string on the screen.
- Parameters
-
- FindStr
- Variable search string
- RowVal
- Row start position
- ColumnVal
- Column start position
- IgnoreCase
- An optional parameter to disable case sensitive find.
- Returns
- False for failure; True for success
- Remarks
- Use FoundTextRow and FoundTextColumn to retrieve the
starting row and column of where the text was found. In VT/6530 sessions you can use a
negative row start position to search back into the scrollback history. This method is
Base-0 for VT/6530 sessions, and Base-1 for all other session types.
- Example
-
Set bzhao = CreateObject("BZWhll.WhllObj")
bzhao.ConnectRes = bzhao.findText( “LOGON”, 0, 0
)
If ( Res = True ) Then
MsgBox “LOGON found at row: “
& bzhao.FoundTextRow & “
column: “ &
bzhao.FoundTextColumn
End If