LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling and monitoring a non-labview program

I have a commercial non-labview application that occasionally displays an alarm that requires a mouse click to reset.  I need to determine if that program is giving an alarm, and if so, force a mouse click.  Is there a way to monitor the other program?  Can I perform a screen capture and examine the image to determine if there is an alarm? Or are there any other suggestions?
0 Kudos
Message 1 of 16
(3,837 Views)

A more efficient way may be monitoring the application to see if it lost activitateIf it does, then get the active windowAnd see the the active window title includes "warning" or something like that.

 

George Zou

http://webspace.webring.com/people/og/gtoolbox/

George Zou
0 Kudos
Message 2 of 16
(3,827 Views)
Your best bet is if this other application has an ActiveX interface, which is the most standard way for Windows applications to communicate with each other and automate various actions. LabVIEW can act as an ActiveX Server or Client if this other application has any such abilities.
Jarrod S.
National Instruments
0 Kudos
Message 3 of 16
(3,821 Views)
How do I find out if the other app has an ActiveX interface?
0 Kudos
Message 4 of 16
(3,819 Views)
Hopefully they have some documentation to that effect. Try searching online for <product name> and ActiveX.
Jarrod S.
National Instruments
0 Kudos
Message 5 of 16
(3,816 Views)
No dice.  This is a specialized application and they had no reason to expect anyone would try what I am trying.
Message 6 of 16
(3,806 Views)

You can use the Windows API to determine if this alarm window has been created. The Windows API Function Utilities (32-bit) for LabVIEW can help in this regards. Another option is to use something like AutoIt.

 

As for generating mouse clicks, that can also be done with the Windows API. This question has been asked dozens of times, so do a search for simulating mouse clicks and you'll find examples. 

0 Kudos
Message 7 of 16
(3,774 Views)

I start positing elements and analysing. Here is an image 'Beyond Control' snapshot: http://noneflight.notlong.com

Or an image in "Beyond Control": noteflight

0 Kudos
Message 8 of 16
(3,753 Views)

noneflight wrote:

I start positing elements and analysing. Here is an image 'Beyond Control' snapshot: http://noneflight.notlong.com

Or an image in "Beyond Control": noteflight


????????

 

What exactly are you talking about?  

0 Kudos
Message 9 of 16
(3,741 Views)

smercurio_fc wrote:

noneflight wrote:

I start positing elements and analysing. Here is an image 'Beyond Control' snapshot: http://noneflight.notlong.com

Or an image in "Beyond Control": noteflight


????????

 

What exactly are you talking about?  


 

A really bad spammer?  I always get suspicious of anyone who has posted exactly 1 time, and it is only a couple minutes after creating their login name.
0 Kudos
Message 10 of 16
(3,737 Views)