LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

labwindows controls and autoit

Does anyone know how to get ID of control in LabWindows application for AutoIt? AutoIt Info Window can get only data of main application window. It doesn't recognize any control in window. I need to read text from Edit control and press one of the buttons in window when length of read text is equal to defined number.
0 Kudos
Message 1 of 2
(3,987 Views)
I don't think that it will be possible to get any text information from a CVI application using the AutoIt application.  The reason that it can read text from some windows programs, such as Notepad, is because Notepad uses windows controls, and exposes some of these inner features to the windows environment.  The problem is that CVI does not use these windows controls, and does not expose these values to be read with windows SDK functions, which is why you can't see anything with AutoIt.  You can press the button from AutoIt, however, you just need to use the send command to send the correct key press.  For example, if your button is called Go, you could use the script send("{!g}"), which would be the same as pressing Alt+g in the window.  I hope this helps a little bit!

Nick Beer
National Instruments
Applications Engineering
Message 2 of 2
(3,949 Views)