HontoNiBaka wrote:
I also would like to know, when a player joins.
Maybe this information can be found in the table chat window. If this window is from type "internet explorer_server" you can use the solution posted here
http://poker-ai.org/archive/www.pokerai.org/pf3/viewtopic6167.html?f=79&t=2929 to retrieve the text.
HontoNiBaka wrote:
Edit: It does use DrawTextW, now I need to know how to get the player labels.
What exactly do you mean with player labels?
However, if those labels contains text, maybe the following will help you.
Have you tried the extended versions of these functions, i.e. DrawTextExW?
If this is not working for you, you could also try to hook ScriptShape and ScriptTextOut. ScriptShape contains the text that is drawn and ScriptTextOut the position and the device context. So you have to map those two calls by saving the pwOutGlyphs and pwcChars pointers from ScriptShape and wait for a ScriptTextOut call which uses the previously saved pwOutGlyphs pointer address (in ScriptTextOut the variable is called pwGlyphs). This ScriptTextOut call contains the coordinates (x, y) and the corresponding device context (hdc) in which the text (ScriptShape's pwcChars) is drawn.