MouseMove

首页  后退  前进

MouseMove
down2

MouseMove

移动鼠标.

 

MouseMove ( x, y [, speed = 10] )

参数

x

移动到屏幕的 X 坐标.

y

移动到屏幕的 Y 坐标.

speed

[可选] 鼠标移动速度. 可设数值范围在 1(最快)和 100(最慢)之间.

若设置速度为 0, 则立即移动鼠标到指定位置. Default(默认) = 10.

返回值

None.

备注

非瞬时的 MouseMove 操作会使用户鼠标移动过程受阻.

如果 MouseCoordMode 设置为相对位置, 则坐标值可能是负数.

 

函数示例

MouseMove(10, 100) ; Move the mouse cursor to the x, y position of 10, 100.
MouseMove(700, 700, 0) ; Move the mouse cursor to the x, y position of 700, 700 and move instantly.

----------------------------------------

参见:

MouseGetPos, MouseClick, MouseClickDrag, MouseCoordMode (Опция), MouseDown, MouseUp

例子
copy

exect=MouseMove(10,100) ;; 将光标移动到坐标x = 10,y = 100

 

exect=$var_a=MouseGetPos() pause=5s exect=MouseMove($var_a[0],$var_a[1],0) ;; 记住光标位置,5秒后将光标返回到原始位置

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru