08-08-2013 07:53 AM
Hi, I am trying to send keyboard commands to an exe I open with systemexec. Once I open the exe, Labview regains active window status so the keystrokes are sent to the LabView window instead. How do I make the called exe the active window?? I am using Labview 12.
08-08-2013 08:31 AM
Hi,
From what i understand, what you want to do is set a window frontmost.
There is an interesting thread on that topic:
http://lavag.org/topic/12751-how-do-you-make-your-application-window-frontmost/#entry76322
The two vi's posted by "Bean" worked great for me after some minor modifications.
The only bottleneck is that you need to know the exact name of the window you want to set frontmost.
Regards
08-08-2013 11:19 AM
Ok, I've figured out how to make the called window active. Now I need to get its window handle so I can send the keyboard commands to that window. As written, the commands don't go to "cprog.exe"
08-08-2013 11:22 AM
Ok, I've figured out how to make the called window active. Now I need to get its window handle so I can send the keyboard commands to that window. As written, the commands don't go to "cprog.exe"