LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send keysrokes to dos via labview 7.1?

Hi,
i have an application in which i am calling a 3 rd party software ( which is a dos application) via labVIEW using system exec commnand . now  in the dos application the user needs to press keyboard  (ex:T for testing the dos application and  Q for quitting the  application). now the task is to automatically press T (via programme) and same for any alphabet required as soon as dos programme is called.. this application is used in production line so opreator intervention to keyboard must be avoided. Can u please help me solve this problem.
0 Kudos
Message 1 of 3
(2,480 Views)
Hi cgar,
you can use the "keybd_event" function from the user32.dll.
Mike
0 Kudos
Message 2 of 3
(2,476 Views)
Try the VI posted in this response.
0 Kudos
Message 3 of 3
(2,447 Views)