LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

check windows running application

Hi all,
 
I have a program that has to check other windows (not LabVIEW programs) that are open. Is there a way to check the running application in LabVIEW?
 
Thank you for your help,
0 Kudos
Message 1 of 6
(4,082 Views)

You can find your anser here: http://digital.ni.com/public.nsf/allkb/E5726FB3FD4ADF3586256F0E0069AAA8

 

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 6
(4,074 Views)
That only applies to LabVIEW VIs, and not to external programs, which, I believe, is what the user is asking about. The answer to the question depends on the OS. For Windows you can use System Exec to execute the "tasklist" command. This will list running processes. If you check the documentation on tasklist (tasklist /?) you will find a bunch of options which may be suitable for you.
Message 3 of 6
(4,067 Views)

Thanks for the responds, but the application I'm trying to check is not vi. It's actually a database file.

Thanks,

0 Kudos
Message 4 of 6
(4,065 Views)

OK, but is this database file opened from within an application, and is that application running? Then the tasklist command will tell you that.

If you want to see if a specific window is open you can call the Windows API (I'm still assuming you're in Windows) to try to get a handle to the window name. If you get a handle, the window is open. You can use the Windows Utilities for this.

0 Kudos
Message 5 of 6
(4,061 Views)

Thank you very much. This resolves my problem! Thanks again.

Message Edited by tgif on 05-24-2007 03:29 PM

0 Kudos
Message 6 of 6
(4,055 Views)