LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make a CVIapplication switch to another program window [3rd party]?

I need two programs cooperate to complete a test. I’m using Checksum’s VisMDA COM Library as an instrument. First when CVI application starts launches Checksum’s software minimized. Later and each time it is required CVI application loads a test routine for Checksum, starts the test and gets the result. But Checksum software remains minimized and sometimes these test routines require some user inputs. We have to click on the other program to make it active and give the inputs it needs. I tried by minimizing the CVI application by itself but Checksum software stills inactive. How can I bring the other application to front and active? [see exec_chksum_run_test_activeX function]
 
0 Kudos
Message 1 of 3
(3,162 Views)

Look at this example:
http://forums.ni.com/ni/board/message?board.id=180&message.id=14043&requireLogin=False
Once you have the handle for the window you can use the windows SDK to control the window from your application.
Note: The full development version of CVI includes the windows SDK as an optional installation.

0 Kudos
Message 2 of 3
(3,154 Views)
Faking a keystroke in the other application may also be an option, see this thread:
http://forums.ni.com/ni/board/message?board.id=180&message.id=23222&requireLogin=False

Message Edited by mvr on 09-20-2006 09:23 AM

0 Kudos
Message 3 of 3
(3,151 Views)