MouseWheel Action

Applies to TestComplete 14.10, last modified on June 5, 2019

Description

Use the MouseWheel action to simulate a rotation of the mouse wheel over the object, to which OnscreenObj corresponds.

Declaration

TestObj.MouseWheel(DeltaShift)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Delta [in]    Required    Integer    
Shift [in]    Optional    TShiftKey Default value: skNoShift   
Result None

Applies To

All onscreen objects.

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The method has the following parameters:

Delta

Specifies the number of detents the mouse wheel should be rotated. A detent is one wheel notch. A positive value means that the wheel will be rotated forward (away from the user); a negative value means the wheel will be rotated backward (toward the user).

Shift

Sets whether the Shift, Alt or Ctrl keys are pressed during the mouse wheel rotation (see TShiftKey). By default, this parameter is skNoShift (the shift keys are not pressed).

Result Value

None.

Example

To view an example that demonstrates how to use the MouseWheel action, see Setting the Trackbar Slider's Position.

See Also

Simulating User Actions
Simulating Mouse Wheel Rotation
LLPlayer.MouseWheel Method

Highlight search results