LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending messages to other Windows applications from within LabVIEW

Hello all,
 
I have no idea whether this is trivially easy or impossible!
 
Background
 
I have a LabVIEW application running on Windows XP. I want this application to boot when the computer is switched on. I am currently doing this simply by placing a shortcut to it in the startup folder so that it runs when anyone logs in. Now it happens that another application also boots up over which I have NO CONTROL and sits waiting for a single mouse click on an OK button, or even a single "enter" key press. If it does not get such a press within a specified time it logs the user out!
 
Question
 
Is it possible from within my LabVIEW application to get at this other application's window and send it an "enter" key press such that I can programmatically get rid of the application. Basically can I get at Windows and send messages from within LabVIEW?
 
Any comments would be appreciated.
 
Regards
 
Kevin
0 Kudos
Message 1 of 3
(2,984 Views)
What is that other application's window ? What program are this?
0 Kudos
Message 2 of 3
(2,980 Views)
If this application window is an active widnow (ready to take a key stroke), then all you need to do is simulate a key press (enter key).
 
You can search this forum for simulate a key press or a click.
 
If the application window isn't active, you can use SetAcitveWindow to bring it to front.
 
George Zou
George Zou
0 Kudos
Message 3 of 3
(2,953 Views)