Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read values from an External Program's open window

Status
Not open for further replies.

bmclaws

Technical User
Nov 19, 2001
9
US
Suppose I have shelled open HyperTerinal. If you look in the lower left hand corner of the HyterTerminal window, the words 'Connected' or 'Disconnected' tell you the status of the connection.

I have automated the connection process and now need to be able to read the 'Connected' or 'Disconnected' value from with VB before proceeding with the VB code.

Does anyone know how I can accomplish that? I'm stumped.

Thanks in advance for your help,

Barry
 
I would start with retrieving the handle of the window of hyperterminal and to analize the structure of the windows of it (I would use Spyxx for that). This will tell you where to find the Statusbarwindow in the hierarchy. Starting of the windowhandle of Hyperterminal you can go down the structure with FindWindow. Then you can get the Text displayed in the Statusbarwindow with API, I think GetWindowText or something similar... And there you are.

Hope this helps
Andreas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top