Moves the mouse wheel up or down. NT/2000/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, MouseGetPosX, MouseGetPosY, MouseMove, MouseCoordMode (Option)
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
' Move the wheel up 10 times
oAutoIt.MouseWheel "up", 10