Programmatically Simulate A Mouse Click in LabVIEW

Updated Feb 12, 2020

Reported In

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

I'd like to programmatically control the mouse to click at a specific point on the screen.
Is it possible to control another program that doesn't have DLL or any other interface LabVIEW can connect with?

Solution

It's possible to programmatically control the mouse using LabVIEW to click at discrete points on the screen using the LabVIEW Call Library Function Node, and use it to call functions from Windows's User32 DLL. An example of this architecture is shown below: