Value of a card bitmap?
I am stumped. What I am writting is like a bot for playing cards. I want it to be able to read the data, and make descisions based on the data. Almost all of the data is displayed in the CListBox. But, the cards that are delt to me are not listed there. They are drawn on the screen as graphical cards. I need to be able to get the value of the cards, both suit and value in order to make decisions. Currently my program works if I manually type my hand into my program. But, this way I can't let me program run autonomously.
Any advice? I hate to keep asking, but this board has been very helpful in the past.
Thanks in advance for any help you can give me.
Are you talking about solitaire & freecell???
If so, then there's no easy way that I can think of.....
The only thing that springs to mind is that both of these apps use a specific dll to draw the actual cards (the cleverly titled "cards.dll")....there are methods to intercept dll calls, but they are rather difficult, very hackish and probably not too reliable unless you really know what you are doing......
Not those specifically. But the idea is the same. I know they have a dll that they are using for the cards.
All other cards that are visable are logged and I can read them from the log. Just my own cards don't get logged.
It is workable the way it is.
Anyone out there have any ideas on reading cards? Is there a way to intercept the dll calls reliably? I know that there is data on cards.dll on the web, but this app is using it's own dll so those specifics wont help.