Use OCR to wait for some text to appear in an area of the screen.Namespace: Facilita.Fc.Citrix
Assembly: fcCitrix (in fcCitrix.dll) Version: 184.108.40.206
public WaitForText( searchText, x, y, width, height, pollFrequency, timeout, language = null, < > preferredWords = null, < > validWords = null, validCharacters = null, validPattern = null, textRotation = .NoRotation )
public Rectangle WaitForText( string searchText, int x, int y, int width, int height, int pollFrequency, int timeout, string language = null, IList<string> preferredWords = null, IList<string> validWords = null, string validCharacters = null, string validPattern = null, Rotation textRotation = Rotation.NoRotation )
the text to find
The x coordinate of the top left corner of the rectangle to read
The y coordinate of the top left corner of the rectangle to read
The width of the rectangle to read
The height of the rectangle to read
The time in milliseconds between attempts to read the OCR text
The total time in milliseconds to wait before timing out.
- language (Optional)
The language the text is in (optional)
- preferredWords (Optional)
Specifies words that should be returned if found. However, if these are not found then other words will be returned instead.
- validWords (Optional)
Specifies the words that may be returned.
- validCharacters (Optional)
The set of characters that may be returned
- validPattern (Optional)
A regular expression value. Only characters or words that match the pattern specified will be returned.
- textRotation (Optional)
Specifies how the text has been rotated
Return ValueA Rectangle specifying the area of the screen where the text was found
|Thrown if the text cannot be found before the timeout period elapses|
This method will search for the text every pollFrequency milliseconds until the text can be found, or until the search times out.