08-17-2011 06:06 AM
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
08-18-2011 04:58 AM
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
08-18-2011 08:30 AM
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