Results 1 to 6 of 6

Thread: Detecting values in a game?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    9

    Detecting values in a game?

    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

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    You're being rather vague I'm afraid...

    What sort of numbers are you talking about ?
    What statistics are you talking about ?

    ...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    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.
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    9

    Vittorio

    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

  5. #5
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  6. #6
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    Please Post a Screen Shot of the Screen please.
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width