LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from popup window in legacy code

I am trying to automate calls to legacy code.  At one point, I need to make a decision based on what is displayed in a popup window generated by that code.  I have been trying to use the Win API InternalGetWindowText in user32.dll with a CIN.  It seemed perfect, but I cannot get it to work.  Every time I try (with any window), it crashes LabVIEW.  Is there a better way?  If not, how do I make this work?
0 Kudos
Message 1 of 3
(2,615 Views)
That's legacy code that is NOT Labview
0 Kudos
Message 2 of 3
(2,614 Views)
 
Hi CTR,
 
Because you know the library and function you are trying to use, you might try the Call Library Node to complete that command.
 
Using that library is the only way I know of to capture information from other programs and windows. The MSDN library explains the arguments for that function and we will need to refence that to understand what inputs and outputs we need for the Call Library Node. Here is the link to it:
 
 
I good example to reference can be found under help » find example » Call DLL.vi.
 
If you have trouble getting that specific function to work, let me know.
 
In regards to the crash, here is some troubleshooting information. It is in reference to the Call Library Node, but can be used to trouble shoot the CIN as well. http://digital.ni.com/public.nsf/allkb/58596F5D41CE8EFB862562AF0074E04C
 
Also, do you receive and error log? Can you provide that? Can you explain how you are calling the InternalGetWindowText function?



Message Edited by Sappster on 06-12-2008 01:47 PM

Sappster
0 Kudos
Message 3 of 3
(2,591 Views)