函数参考


MouseUp

在当前位置产生一个鼠标释放(按键)事件.

MouseUp ( "按钮" )

参数

按钮 要点击的按钮:"left"(左键),"right"(右键),"middle"(中键),"main"(主键),"menu"(菜单键),"primary"(主要按钮),"secondary"(次要按钮).

返回值

成功: 返回 1.
失败: 返回 0, 鼠标按钮不在列表中.

注意/说明

参考 MouseClick 相关.
谨记:保证每个 MouseDown 事件总有其对应的 MouseUp 事件.

相关

MouseDown, MouseClick, MouseClickDrag, MouseGetPos, MouseMove, MouseCoordMode (Option)

示例/演示


MouseDown("left") ; Set the left mouse button state as down.
Sleep(100)
MouseUp("left") ; Set the left mouse button state as up.