You will need some kind of image recognition ability if all you have to work on is the image of a hand of cards (or a Flash application). If your on-screen display is created by HTML then you might find that parsing the HTML will tell you what cards are displayed.