Method MouseWheel

AutoIt X

Method Reference


MouseWheel

Moves the mouse wheel up or down. XP ONLY

MouseWheel "direction" [, clicks]

Parameters

direction "up" or "down"
clicks Optional: The number of times to move the wheel. Default is 1.

Return Value

None.

Remarks

If the direction is not recognized, oAutoIt.error is set to 1.

Related

MouseClick, MouseClickDrag, MouseCoordMode (Option), MouseGetPosX, MouseGetPosY, MouseMove

Example


Set oAutoIt = WScript.CreateObject("AutoItX3.Control")

' Move the wheel up 10 times
oAutoIt.MouseWheel "up", 10