Capturing/Recognizing Text In Another Window
Miki Tebeka
mikit at zoran.co.il
Tue Oct 14 03:26:17 EDT 2003
Hello Scott,
> I'd like to write a Python program that could capture the contents of
> another Windows program and analyze the resultant bitmap. First, I have no
> idea how to capture another window. Second, I'm not even certain if this
> graphical problem is a Python issue or a Windows issue.
>
> Can anyone offer me some guidance on this?
I'd use an automation program such as AutoIt
(http://www.hiddensoft.com/AutoIt)
to capture the scree usign ALT+PRTSC (there is an example in the help
on how to do this). Then use MS Paint or whatever to save the image to
the disc from the clipboard.
>From there on you can open the bitmap and do whatever you want (try
PIL).
HTH.
Miki
More information about the Python-list
mailing list