ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Current Active Window

Solved!
Go to solution

You want the active window, but you are calling the GetForegroundWindow.  Why not calling the GetActiveWindow?

Foreground window ≠ active window.

Foreground window may belong to another application; while active window belongs to the same application.

 

 

George Zou
0 Kudos
Message 11 of 12
(989 Views)

Sorry, I meant foreground window. 🙂

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
0 Kudos
Message 12 of 12
(981 Views)