From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running a 3rd Party Program

Solved!
Go to solution

All,

 

I want to be able to launch and run a 3rd party program via LabView.

 

Launching the program via "System Exe.vi" is simple enough.

 

But now I want to programatically make all the button pushes. So instead of the user having to navigate the 3rd Party GUI, it would be done via Labview.

 

It sounds like I would need a dll and know the entry points but if I only had the exe is it still possible?

 

thanks

 

0 Kudos
Message 1 of 7
(3,212 Views)

If you know the keyboard shortcuts, you could try using send keys:

http://forums.ni.com/t5/LabVIEW/Anybody-knows-how-to-do-send-key-function/td-p/348011

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 7
(3,208 Views)

I've use Autoit in the past for this.

0 Kudos
Message 3 of 7
(3,203 Views)

I tried the Autoit and like it. This may do the trick.

 

Are there any other ways to accomplish this same task?

 

thanks

0 Kudos
Message 4 of 7
(3,162 Views)
Solution
Accepted by CarmineS

Another option would be to use windows or user32 dlls to generate mouse clicks. But if the executable file isn't desinged for access promaticaly, it will be a harder task to accomplish. You can also follow below link for more help.

 

http://digital.ni.com/public.nsf/allkb/CA411647F224787B86256DD000669EFE

National Instruments
Applications Engineer
0 Kudos
Message 5 of 7
(3,125 Views)

Can user32 be used to acquire a list of windows on the screen, select the application window and then obtain controls and indicators for populating and pressing? It seems like a form type of dll is probably what I'm looking for.

0 Kudos
Message 6 of 7
(3,000 Views)

For LabVIEW front panels, NO. 

You can't get a list of controls or indicators with user32.dll.

Since LabVIEW objects aren't window objects.

 

 

George Zou
0 Kudos
Message 7 of 7
(2,993 Views)