From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
GetGlobalMouseState()函数和
GetRelativeMouseState()函数来实现以上功能。
GetGlobalMouseState函数返回的是鼠标相对于屏幕上边和左边的位置。
GetRelativeMouseState函数返回的是鼠标相对于所选中控件的上边和左边的位置这两个函数都可以处理鼠标左键和右键的事件,同样可以响应键盘快捷键。
LabWindows/CVI 8.1即以上版本已经把上述鼠标事件设置为内建,即不需要使用EnableExtendedMouseEvents函数来使能了。
参考LabWindows/CVI的帮助文档以获得内建鼠标事件和上述函数的更多信息。
|