HoverMouse Method (ImageSetItem Object)

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

Use the HoverMouse action to place the mouse pointer at the specified position within the control specified by its image in the Image Repository. You can use this action to simulate a hovering (hot-tracking) event over the control.

Declaration

ImageSetItem.HoverMouse(X, Y, SearchArea)

ImageSetItem
X [in]    Optional    Integer Default value: -1   
Y [in]    Optional    Integer Default value: -1   
SearchArea [in]    Optional    Object    
Result None

Applies To

Parameters

The method has the following parameters:

X

Specifies the horizontal coordinate of the point where the mouse pointer will be placed.

This coordinate is relative to the top-left corner of the control’s recognition area marked with a red frame in the Preview box of the ImageSet editor.

If the parameter is omitted, the mouse pointer will be moved to the center of the recognition area.

Y

Specifies the vertical coordinate of the point where the mouse pointer will be placed.

This coordinate is relative to the top-left corner of the control’s recognition area marked with a red frame in the Preview box of the ImageSet editor.

If the parameter is omitted, the mouse pointer will be moved to the center of the recognition area.

SearchArea

Specifies the area, within which the method will search for the image. Can take the following values:

  • Your current computer desktop. Access it by calling the Sys object or the Sys.Desktop property.

  • A window or onscreen object in your desktop or web application.

If the parameter is omitted, the method will search for the image on your PC desktop.

Result Value

None.

See Also

Image-Based Testing

Highlight search results