LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exe option screen problem

Hi

 

I have an exe file that runing in dos screen, in this file i want to choose one of the options (d,a,....) automaticly in LABVIEW .

 

Right now i only secssus to open the exe file (by using exec.vi) but dosn't know how to chose automaticly one of the options in that screen.

 

Can someone know how to chose automaticly one of the option's in Labview???

 

This is the exe option screen:

 

thanks

 

exe file.JPG

 

0 Kudos
Message 1 of 3
(2,240 Views)

You can do it using autohotkey script, which you can lunch with LabVIEW (using "System Exec.vi").

The script you'll need is very simple:

 

Run C:\seaiotst
WinActivate
Send A{Enter}

 

Where "A" is your choice. You can dynamically change the script using LabVIEW for choosing anything else.

 

 

Good luck,

Amir

Message 2 of 3
(2,209 Views)

You could also try the Windows API method as I showed in the last example of this thread: http://forums.ni.com/t5/LabVIEW/URGENT-How-we-read-stdout-directly/m-p/802382?view=by_date_ascending

0 Kudos
Message 3 of 3
(2,195 Views)