I don't necessarily disagree... for command-line apps it's quite
simple to just use a socket on port 21.
But for "full screen" VT-style apps where screen scraping is needed,
it's a different problem. Simply put, the control sequences can be
overwhelming to wade through. And you end up having to calculate
your X, Y coordinates manually. Not saying it can't be done, it's
just busy coding.
The advantage of using the GUI as an intermediary is that it takes
care of interpreting all of that for you. Leaving you with the (hopefully)
simpler task of being able to call an API function of the sort
"get me the 13 characters at (X, Y) coordinates (15, 30)."
Just my $0.02 having done a lot of screen scraping in a past life.
I guess all that to say that I think the person who posted the
original request might be on the right track using an emulator GUI
in this case. The trick is how to drive it... and thanks to Paul
for reminding me (rusty memory) that the C API is called HLLAPI.
And I agree an extension for Python for HLLAPI would be way useful.
Troy
-----Original Message-----
From: Kįri Haršarson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: RE: Controlling win32 application
Sounds like you might be wanting to cross the lake to get water.
A Telnet app is nothing but a GUI on top of a socket on port number 21.
It would be more expedient to open the socket on port 21, write to it
as if it were a file and read the results back the same way.
Best regards,
Kari Hardarson
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython