当前位置:网站首页>LabVIEW collects mouse and keyboard data

LabVIEW collects mouse and keyboard data

2022-04-23 22:04:00 InfoQ

mouse 、 Keyboard input data is the most basic interactive operation mode of application program , This blog post will share LabVIEW How to get these data .
In the program window , Right click to select :
Internet interface → Input device control
You can see a series of mouse and keyboard data acquisition components , As shown in the figure below :
null
​ Input device control VI Used to obtain the joystick connected to the computer 、 Keyboard or mouse information , The component description is shown below :
null
​ Through a small case, use the input device to control VI Monitor mouse and keyboard actions , It can be judged that the left mouse button clicks 、 Right click on the 、 Mouse position and pressed keyboard key information , The implementation code is as follows :
null
​ The effect is as follows :
null

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/113/202204232202103031.html