I'm looking into the possibility of having a program written which
would grab text and identify images from the windows of another
program. It would also fill in text boxes and effect button-presses
in those windows. The problem? I don't know how all this can be
done...lol.
To distinguish this not-yet-written program from the windows it works
with, I will call the program which is to be written the "master
program". The master program would read the text from the windows of a
3rd-party program, make decisions based upon the what it sees, and
then fill in text boxes and initiate button-presses in those windows.
The master program would essentially be a user of the
3rd-party program.
The 3rd-party program is not wholly text-based though -- there are
also a number of predefined images which are shown, which a user must
respond to. That is why the master program must not only be able to
read text, but also be able to recognize when one of the predefined
images has been painted, and respond to it as well. The master
program would have bitmaps of all the predefined images.
My question is: How can I accomplish the interaction needed with the
3rd-party program windows? Specifically, for given positions within
a window, how do I know what text (if any) is there? How do I know
which predefined image (if any) is there? How do I have the master
program enter text into textboxes? And how do I effect
button-presses? I don't have the source code for the 3rd-party
program, so modifying it is not an option. The 3rd-party program runs
on Windows operating systems (I'm using XP Pro).
If some of the desired functionality is available as a software
package or library, then I would certainly be open to using that
software as part of the solution. Programming language is open.
Thanks! |
Request for Question Clarification by
sublime1-ga
on
29 Mar 2006 14:31 PST
I know zip about programming, but if you're want to explore
the methodology of such programming, I'm thinking you might
benefit from having a peek at a program called PTFB, or Push
The Freakin Button, which, when programmed by the user using
drag and drop, detects the script of an open window title of
another program in order to uniquely identify it, and then
pushes the button, again based on the text found on the button:
PTFB:
http://www.tlhouse.co.uk/PTFBPro/mouseautoclicker.shtml
You can examine the programming of this and other software
using a wonderful freeware tool called Resource Hacker:
http://www.angusj.com/resourcehacker/
Let me know if this is useful enough to consider as an answer.
sublime1-ga
|