LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Win32API EnumChildWindows Call in LabVIEW

Hi all,
 
I am trying to read a value that appears on the stand alone exe. It looks like it is possibe to read the values of controls that appears on an exe, by getting the windows reference and using the EnumChildWindows in that window to get the reference of the particular control.
 
I am struck with the the callback used in this function. Anybody have called this function in user32.dll using LabVIEW?
 
Thanks,
logic
0 Kudos
Message 1 of 5
(4,560 Views)
Yes. Take a look G Toolbox ($) at: http://gtoolbox.yeah.net
 
However, EnumChildWindows is not the best solution.  FindWindowEx may be easier.  Please be aware that the controls might be grandchild windows.
George Zou
Message 2 of 5
(4,555 Views)
Hi,
 
The toolbox looks interesting.
 
By the way, you have mentioned the controls will be grantchild of the main window. Is there any way to access that? I tried using the VIs available in the toolbox (calling twice), it does not seems to work.
 
Thanks,
logic
0 Kudos
Message 3 of 5
(4,537 Views)
It depends on what type of window.  If it's a LabVIEW front panel, you won't get any child windows (execpt ActiveX container).
LabVIEW controls aren't child windows.
Application created by other languages might have child or grandchild windows.
 
George Zou
 
George Zou
0 Kudos
Message 4 of 5
(4,525 Views)
Hi Logic,
Greatis WinDowse is a program that can tell you if there's a window, and you can get the window handle using the methods mentioned above.  If the area you are interested is not a window, you'll have to do something like acquiring raw pixel data from the region of interest and trying to divine text from it (i.e. some home baked OCR).
Good luck!

Yi Yan
Applications Engineer
www.ni.com/support
0 Kudos
Message 5 of 5
(4,484 Views)