Determine the Active Window in LabVIEW

Updated May 15, 2018

Reported In

Software

  • LabVIEW

Issue Details

I need to programmatically determine which window is active on my computer using LabVIEW. 

Solution

Call the GetForegroundWindow function using the Call Library Function node on your block diagram to return the handle of the active window. You can also call the GetWindowText function to return the name of the active window. Run the attached VI to see this functionality.

WAS THIS ARTICLE HELPFUL?

Not Helpful