Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


readproccesmemory how to read text

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
nielskool
Advanced Cheater
Reputation: 0

Joined: 03 Jun 2007
Posts: 65

PostPosted: Thu Oct 29, 2009 8:12 am    Post subject: readproccesmemory how to read text Reply with quote

i don't know how to read memory value as a string.

Code:

ReadProcessMemory(PHandle,Pointer($3B98D104),@tem,4,Read);
...:= string(tem);


this gives me an error
i just want to get a word from the application and transfer it into a label
i've been searching google, but without result so you guys are my last hope:P

_________________
cheaters are the best race in the world, they love eachother:P, so i would say never fuck poeple of your own race, unless they're beautiful:P
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Oct 29, 2009 1:50 pm    Post subject: Reply with quote

Man i haven't used C or Pascal in a while but have you tried to just store all the data in a char pointer/array?

if you know the length of the string it would be easier to just do that?

_________________
Back to top
View user's profile Send private message
False Prophet
Expert Cheater
Reputation: -1

Joined: 28 May 2006
Posts: 121

PostPosted: Thu Oct 29, 2009 5:42 pm    Post subject: Re: readproccesmemory how to read text Reply with quote

nielskool wrote:
i don't know how to read memory value as a string.

Code:

ReadProcessMemory(PHandle,Pointer($3B98D104),@tem,4,Read);
...:= string(tem);


this gives me an error
i just want to get a word from the application and transfer it into a label
i've been searching google, but without result so you guys are my last hope:P


I just had the same problem. nSize needs to be the length of the string, create a pointer for address and give @tem a value before calling it.
I am not working C though.

_________________
Back to top
View user's profile Send private message
nielskool
Advanced Cheater
Reputation: 0

Joined: 03 Jun 2007
Posts: 65

PostPosted: Fri Oct 30, 2009 6:02 pm    Post subject: Reply with quote

i already solved it.
i made it put in a array of byte with a length of 10.
and did something like this:
Code:
while a<10 do
begin
a:= a+1;
string:= string+char(array[a]);
end;

_________________
cheaters are the best race in the world, they love eachother:P, so i would say never fuck poeple of your own race, unless they're beautiful:P
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites