FindString
FindString
Finds a text string at the specified location on the screen and returns the position if found.
Syntax
FlexScreen.FindString(Text, StartPos, Len, FlexDirection, IgnoreCase)
Parameters
Text |
String, input |
|
Text string to search for. |
||
StartPos |
Integer, input |
|
Integer value of the zero based screen position to start the search, which may be obtained by using the FlexScreen.Position method. |
||
Len |
Integer, input |
|
The length from StartPos to include in the search. |
||
FlexDirection |
Boolean, input |
|
Represents the direction of the search - FlexDirection.FORWARD or FlexDirection.BACKWARD. |
||
IgnoreCase |
Boolean, input |
|
Indicates whether the search is case sensitive, where true means case is ignored. |
Example
Sub Main()
If FlexScreen.FindString("LOGON", FlexScreen.Position(23,12), 5, FlexDirection.FORWARD, True) >= 0 Then
MsgBox "Logon found."
Else
MsgBox "Logon not found."
End If
End Sub