access the text being generated in other windows

A

algebraist

hi, newbie question here

i play poker on partypoker and ultimate bet (both of which have clients
you have to download)... i was thinking of writing a program that used
the hand histories these clients generate (in little text boxes within
the client)

is there a way python can access the text being generated in other
windows, by other programs/processes?

ultimatehistory.exe is an example of what i'm talking about (written in
C++, i think)... it takes the text output that ultimate bet's client
generates, and saves it to disk... i would like to do something
similar.

cheers
(i'm running python 2.4 on winxp sp2 home edition)

--
 
B

bmgz

algebraist said:
is there a way python can access the text being generated in other
windows, by other programs/processes?

my guess- you will probably have to resort to some rather downright
dirty screen scraping.
 
A

algebraist

yeah, someone else mentioned getting the window's handle (can use
spyxx.exe for this) and then using hooks... but i'm not sure where to
go to learn about using window hooks, in python (or in general,
actually)...

is this 'downright dirty screen scraping'?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top