I am writing an app which I hope eventually will read all the pertinent data out of a target application. The application is a poker app and the information is all the data pertaining to the game state. So we have players, anywhere between 2 and 9, their respective stacks, my hole cards, board cards, the pot, and then the player action i.e. they call, raise, fold etc.
Let's start with a simple question. You have a table with 9 players, I want the app to automatically scan the target and tell me the name of the 9 players and the seat at which they are sitting. How would you go about solving this problem? My app automatically attaches itself to the target and scans memory, I can then manually scan for information, such as the player names and their stacks. The problem is that each time a new target (table) is opened the player information is written into memory at a different memory location. The other issue is of course that you will always play different players so each time a table is opened you are starting with zero knowledge. So would the best way to be to pass the pe header? Basically what approach would you take to starting what is affectively a scraping app?
Thanks.