I know how to do these things, but I have to make sure we're talking
about the same thing here before I give you the code for it (and
explain what it all does).
"feed/automate a click at a particular spot/pixel."
I know how to automate clicking if you're using Microsoft Windows, but
the applet has to be the active window. I think I can also provide
help if you don't want it to be an active window, but I'll need you to
clarify that first.
"Next, I would like to be able to read text from one of the java
controls BUT would settle for just reading the entire applet's window
as a bitmap if I absolutely had to (and then trying to disect the
bitmap to get at the text)."
You're getting into some more complicated stuff with this, because you
need an OCR (Optical Character Recognition) algorithm. That shouldn't
be too difficult, but, again, I need clarification on what kind of
text and in what context it appears. Certain OCR algorithms are good
for certain things, and there isn't one univeral one that can be made
for every case. So, I'll need information on what you're trying to
read in, first. |