PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Non PPC VB question.

I have written a VB app that uses an ole object to cut and paste between two Hummingbird telnet sessions. I want to use standard windows api instead of the properties/methods provided by the Hummingbird object. The app needs to wait for text to appear in one session and then paste it into the other. Right now I am using a property that returns the text found in a row on one session. I'm doing a loop and checking the data returned. I had to put a sleep in because the cpu was pegged at 100% during the loop. Is there a less intrusive way than this infinite loop using winapi? Like detecting the screen has changed and then grabbing my data? Also if I use FindWindow and two sessions have the same title which handle gets returned? Thanks for any help.

Brian
Looks like I'm stuck with the Hummingbird object as I can't find a way to screen scrape the text from the telnet session using winapi.