|
-
Nov 12th, 2001, 10:07 PM
#1
Thread Starter
Lively Member
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.
-
Nov 12th, 2001, 10:48 PM
#2
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.
-
Nov 12th, 2001, 10:56 PM
#3
Thread Starter
Lively Member
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.
-
Nov 12th, 2001, 10:58 PM
#4
PowerPoster
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.
-
Nov 12th, 2001, 11:01 PM
#5
Thread Starter
Lively Member
If you could give me an example of that It'd be great. I havent used replace() before. Thank you.
-
Nov 12th, 2001, 11:04 PM
#6
PowerPoster
The function for Replace() should be in your object browser.
I believe it has this syntax: Replace(Source, ReplaceThis, WithThis)
-
Nov 12th, 2001, 11:08 PM
#7
Thread Starter
Lively Member
Ok I'll try that method. Thank you everyone. It's nice to find a forum where people actually help you.
-
Nov 12th, 2001, 11:11 PM
#8
-
Nov 13th, 2001, 01:02 AM
#9
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|