Results 1 to 9 of 9

Thread: Assuming that all is correct In ReadProcessMemory, then I should...

  1. #1

    Thread Starter
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103

    Assuming that all is correct In ReadProcessMemory, then I should...

    In response to my earlier post:

    Assuming that Im using ReadProcessMemory() right, Im going to have to build a filter to get rid of all the unwanted characters that the memory address gives me. Then, since my wanted text is broken up, Im assuming that the rest of the text is stored in another memory address. So Im going to have to filter all text, and then join it together. Am I correct on assuming this is the neccessary course of action?? Thanks for all the help.

  2. #2
    jim mcnamara
    Guest
    Text stored in memory will be either single character ascii text or unicode. If it's single character text, there is a good chance it will be null-terminated (end with ascii 0). So you figure out where a string ends pretty easily.

    Text stored in memory as text is not broken up, unless the program storing the text allocated a series of string array elements piecemeal or the data is stroed in a linked list.

    You should not need a filter. It should read in just fine.
    If it was stored as a linked list, there will be 4 byte blocks of junk at the start and at the end of the blocks. The text pieces may not be in any order.

  3. #3

    Thread Starter
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103
    I dont know if youve read my earlier post , but the text Im getting is broken apart, and also has ALOT of jusnk in it. Like:
    §_+8{m|||h|e|l|l|o|§§§$$
    Like that
    I dont know why it's sending all the junk, or how I could get rid of it.

  4. #4
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    To get rid of it, you can just have a For...Next statement that uses Replace() on all characters outside of the ASCII code range for alphabet characters.

  5. #5

    Thread Starter
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103
    If you could give me an example of that It'd be great. I havent used replace() before. Thank you.

  6. #6
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    The function for Replace() should be in your object browser.

    I believe it has this syntax: Replace(Source, ReplaceThis, WithThis)

  7. #7

    Thread Starter
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103
    Ok I'll try that method. Thank you everyone. It's nice to find a forum where people actually help you.

  8. #8
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Hey, I've got my own forums, too, ya know! (Yeah, I answer your questions there.)

  9. #9

    Thread Starter
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103

    Angry

    Is ReadProcessMemory() even the way to get text from this game. I dont know anymore. Im not sure. Is there another way to get text from a game like Ultima Online, where the text is "painted" on the screen (i.e. no textboxes to use API's for) There must be another way. Any ideas or help?????? Thanks.

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