Overview
This VI allows you to programatically control your mouse from LabVIEW, and can be useful in automation. It makes use of the User32.dll functions SetCursorPos and mouse_event
Description
This VI gives the option for mouse up and mouse down events on the left, middle and right mouse buttons. It also allows you to set the mouse position (in pixels) before performing an action.
For a "click" you will need to run the VI twice to create a mouse down, then a mouse up event. If you just create a mouse down event, this will be equivical to clicking and holding, until the mouse receives another input on that button, or you generate a mouse up event.
Requirements
Steps to Implement or Execute Code
Additional Information or References
block diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.