LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control a Windows application from Labview

Dear all,

i would like to control a windows application but i do not know anything
about it (i just have an executable *.exe file).
The problem is i have to run it (using the System Exec.vi) and to choose an
option from the menu...

Thank you for helping me,
Best Regards.
0 Kudos
Message 1 of 4
(3,442 Views)
Many windows app's are controllable via ActiveX.
See: Help->Examples->Search Examples->Communication Examples->ActiveX
Examples
and: Help->ActiveX.
also pay a visit to www.zone.ni.com
have fun.



"Dany Devos" wrote in message
news:98t5c8$3v5o1@mso1o020.u-3mrs.fr...
> Dear all,
>
> i would like to control a windows application but i do not know anything
> about it (i just have an executable *.exe file).
> The problem is i have to run it (using the System Exec.vi) and to choose
an
> option from the menu...
>
> Thank you for helping me,
> Best Regards.
>
>
>
>
0 Kudos
Message 2 of 4
(3,442 Views)
Dany Devos wrote:

> Dear all,
>
> i would like to control a windows application but i do not know anything
> about it (i just have an executable *.exe file).
> The problem is i have to run it (using the System Exec.vi) and to choose an
> option from the menu...
>
> Thank you for helping me,
> Best Regards.

If the menu option can be chosen by keyboard, such as Copy can be chosen
with Ctrl-C, then you can simulate a key stroke. There are VIs and examples on

my homepage for simulating a key stroke.
Otherwise, you can simulate a mouse move, and a click to choose menu option.

Regards,

George Zou
http://george-zou.sinacity.com
0 Kudos
Message 3 of 4
(3,442 Views)
Thank you for your help!!
See you,
Dany Devos

> If the menu option can be chosen by keyboard, such as Copy can be chosen
> with Ctrl-C, then you can simulate a key stroke. There are VIs and
examples on
>
> my homepage for simulating a key stroke.
> Otherwise, you can simulate a mouse move, and a click to choose menu
option.
>
> Regards,
>
> George Zou
> http://george-zou.sinacity.com
>
>
0 Kudos
Message 4 of 4
(3,442 Views)