Results 1 to 2 of 2

Thread: Detecting values from another application?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    9

    Question Detecting values from another application?

    I want to create an application that will read the values of six stats from a game and then click the reroll button if the stats are too low to be acceptable.
    How do I go about detecting these values and sending a click event to the reroll button?
    Is the only way to do this to decompile the game?
    An example of what I want is this:
    Lets say I click the reroll button, and these stats appear:
    Strength: 15
    Constitution: 16
    Agility: 4
    Dexterity: 19
    Intelligence: 16
    Wisdom: 17
    Now I want my application to read these values and compare them to the minimum values I have set to be acceptable stats. Lets say the minimum is 15 in each category. This would mean that Agility is too low, so my application would then send a click event to the Reroll button and read the stats again and so on..
    Any help is appreciated, thanks.

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    This is possible, but you wouldn't want to write it in VB. To do this, you need to monitor the memory that the target application is using, and check to see if changes in the values you are looking for match changes in any of the locations in memory. This is a trial-and-error process and can be done at design-time if necessary. This used to be relatively easy back in DOS times, but now applications aren't really allowed by Windows to do anything with memory outside their own jurisdiction. I am pretty sure you can get around it with some low-level APIs or something, because there are commercial apps designed for this.

    Basically, it's pretty difficult.

    If the app use standard windows text boxes or labels to display the values, then you can (I think) use GetWindowText or something like that to get the contents. Not many games use standard textboxes though.
    Harry.

    "From one thing, know ten thousand things."

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