CitrixVirtualUserScript CheckForImage Method (String)C# API
Checks if an image has appeared anywhere on the screen.

Namespace: Facilita.Fc.Citrix
Assembly: fcCitrix (in fcCitrix.dll) Version: 9.5.8.37
Syntax

public bool CheckForImage(
	string image
)

Parameters

image
Type: System String
The image to be found

Return Value

Returns true if the image has appeared otherwise false.
Remarks

Checks for the appearance of an image in the given screen area or the full screen. Equivalent to WaitForImage(String, Int32, Int32, Int32, Int32, Int32) but returns true/false instead of raising a timeout exception.
Examples

// wait for the image to appear 
if (!CheckForImage(@"Paint\View Tab.bmp))
{
    WriteMessage("The view tab was not found");
}
See Also