Applies to TestComplete 12.40, last modified on October 6, 2017


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



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.


The method has the following parameters:


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).


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



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
MouseWheel Method