CitrixVirtualUserScript DoubleClick Method (String, Int32, Int32, Int32, Int32, Int32, Int32)C# API
Wait for an image to appear in an area of the screen and then double clicks on it

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

public void DoubleClick(
	string image,
	int xPos,
	int yPos,
	int width,
	int height,
	int searchRadius,
	int timeout
)

Parameters

image
Type: System String
The image to be found
xPos
Type: System Int32
the x coordinate of the top left hand corner of the search area
yPos
Type: System Int32
the y coordinate of the top left hand corner of the search area
width
Type: System Int32
the width of the search area
height
Type: System Int32
the height of the search area
searchRadius
Type: System Int32
increase the search area by searchRadius pixels in each direction
timeout
Type: System Int32
The total time in milliseconds to wait before timing out.
Exceptions

ExceptionCondition
TimeoutException
Remarks

The call searches for the image (bitmap) until it is is found or the timeout period expires and a TimeoutException is raised.
Examples

// Wait for the NewItem.bmp image to appear in the given X,Y,width,height screen area. 
// DefaultSearchRadius, DefaultTimeout and DefaultPollFrequency apply to this call

DoubleClick("NewItem", 120, 150, 10, 12);
See Also