There is a game in which you have to click a button to roll numbers for your statistics. How would I go about detecting what these numbers are and then automatically clicking the reroll button if the statistics aren't high enough?
Thanks
Printable View
There is a game in which you have to click a button to roll numbers for your statistics. How would I go about detecting what these numbers are and then automatically clicking the reroll button if the statistics aren't high enough?
Thanks
You're being rather vague I'm afraid...
What sort of numbers are you talking about ?
What statistics are you talking about ?
...
At a Guess he is talking about Baldurs Gate Game Range.
I suppose one way of doing it would be to capture the Window, cut out the Numbers Rolled, Compare them to existing images for each one (ie The Numbers you want) then if they arn't telling the mouse t click where the button is.
The game is called Darkness Falls: The Crusade and can be downloaded at www.mythic-realms.com.
When the Reroll button is clicked, the six character attributes (strength, constitution, agility, dexterity, intelligence, and wisdom) are randomly generated as numbers between 4-20 (though I'm not sure how random it is, because the number 20 seems very hard to get).
If someone could explain to me HOW to detect what the numbers are and how to send a click command to the reroll button I'd greatly appreciate it.
Thanks
Well you could use SendKeys to switch into the other add + press enter, and in relation to getting the values ... well if they're displayed in textboxes then you can use APIs to extract their Text.
Please Post a Screen Shot of the Screen please.