LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing data to another application via PC keyboard buffer

Hi,
 
I'm writing a background processing application now using Labview 7 and under Window XP.
 
Seeking some help on how to put a string of characters into the PC keyboard buffer, so I can pass on my string of (processed) data to another 3rd-party-application via keyboard buffer (ie. simulate the data entry to the 3rd-party-application)  in the same desktop PC.
 
I have tested such simulation on the olden days DOS 6 based C programming by putting few characters & changing the control information directly into the physical system memory, the operating system round-robin-keyboard-buffer..... it works on the DOS environment.... but it failed to work on the Window XP and using my Labview.
 
Thanks.
 
Rgds
WONG
0 Kudos
Message 1 of 3
(2,947 Views)
You should use the keybd_event or SendInput windows API's. If you search the
NI forum on them, you will find more information, and probably some code.

Regards,

Wiebe.


0 Kudos
Message 2 of 3
(2,927 Views)
Hi Wiebe.
Thanks for your useful tips and help.  Will dig into it.
 
Rgds
Wong
0 Kudos
Message 3 of 3
(2,907 Views)