LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I bring another application to Windows' foreground from CVI?

Not only would I like to bring another application to the foreground, but after I send it keystrokes from LabWindows/CVI, I'd like to ensure that it's still in the foreground.
 
LaunchApplication doesn't work because it launches a separate instance of the application.
0 Kudos
Message 1 of 5
(3,670 Views)
I don't think CVI has any functionality to do this. either you can use windows SDK functions or you cal use autoit. Download autoit dll from here. http://www.autoitscript.com/autoit3/downloads.php then call activate_widnow or something like that. You just need to know your window title.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
Message 2 of 5
(3,658 Views)
That "autoit" program is perfect and easy to use, thanks.
0 Kudos
Message 3 of 5
(3,630 Views)
Sheetal:

Thank you for recommending AutoIt.  It solved a similar problem that I was having.
0 Kudos
Message 4 of 5
(3,456 Views)
Good idea, I'm a huge AutoIt fan anyway. I should have thought of this.
0 Kudos
Message 5 of 5
(3,450 Views)