How to Automate Windows GUI Using LabVIEW?

Updated Aug 31, 2023



  • LabVIEW

I usually use AutoIt to simulate mouse click or key press in Windows. Is it possible to do this in LabVIEW?

You can use Call Library Function Node and make use of user32.dll functions.
  1. Drop Call Library Function Node to the block diagram, then right click>>Configure...  
  2. Set user32.dll on Library name or path. 
  3. For Function name, you can use one of below
  4. On Parameters tab, add parameters corresponds to the function that you chose based on the Syntax which you can find on the links above or Microsoft page.

Below is a sample VI which showcase the use of Call Library Function Node set mouse cursor and then performs mouse click action.