Getting output of other running programs

Hello, I'm sort of new to C++ and have what seems a very tricky feat to me. I am programming a poker calculator and I want it to be able to read the cards that are displayed in the poker client window. For instance, if a Jack is dealt to you in PokerStars client I would like to be able to get that card from the program. The only method I know of is using GetPixel on the screen to find the card if certain pixels match certain colors. I think there might be a better way considering people resize their screen or they change the theme of the table/cards. Is there a way I can get some sort of data on the card that is being dealt from the client either directly or some sort of higher level function on clients computer that actually draws the card or handles outputting the card? I would really appreciate your help on any leads!

Thank you,
Shane
GAH! Well, it depends on who you are.

If you are nice, sweet, and innocent:
Just be nice to others, don't write the program, it'll break others hearts to loose their fortunes, and you just couldn't break their hearts, would you? You're nice and sweet, right? You'll get a cookie if you don't do it, honey.

As for the rest of us:
If you insist on doing it the automated and harder way, then either use a function that gets pixels and match the patterns up with a three-dimensional array, or hijack the program and find the function responsible for receiving the card value, and determine the memory slot the number is put in (reference operator?). Then use a dereference operator to get that value in your own program. Unfortunately, both methods can backfire quite seriously. The easier and more reliable way is to put in the values by hand, which can't possibly backfire as seriously as the other two methods.
There was a utility I used to use called GameHack... but I think this is going off topic.
Topic archived. No new replies allowed.