From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-01-2012 06:09 PM
I have a non LabView application that I am trying to monitor with LV. A text status message is displayed in a text box on the application and I need to get it. I can get the WinID of the applicaton main window but where do I go from there? Do I have to get the child window ID and if so then how? Can this be done just using user32.dll calls?
Norm
08-01-2012 06:39 PM
You need window handle not id.
If the text message is displayed in a child window, then yes, you have to get the child window handle. Use GetWindow
08-02-2012 10:55 AM - edited 08-02-2012 10:56 AM
Perhaps I'm using the wrong terminology. I am interested it getting the status message in the text box "Occupancy......" into LabVIEW. What questions should I be asking the programs author?
08-03-2012 10:00 AM
Now I'm confused.
Windows id is fine. You can get window handle from the id with GetDialogItem
You can then use SendMessage with WM_GETTEXT to get the message you want.
If you can get answer from the program author, ask him:
1. Is the text box a child window of TestClient or grand child ... ?
2. Is the "text box" a real text box?
The string control / indicator in LabVIEW are not text box. LabVIEW doesn't support SendMessage / WM_GETTEXT. But you still can get text from LabVIEW in other method.
However, if it's like the LabVIEW context help window, then there is no way to get the text.
10-15-2019 02:04 AM
I am looking exactly the same answer like you, do you manage to get solution ? can you share your Solution here if you have it. Thanks .