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 


[Delphi] Reading from pointers.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Dracons
Newbie cheater
Reputation: 0

Joined: 08 Nov 2016
Posts: 16

PostPosted: Thu Jan 19, 2017 7:49 pm    Post subject: [Delphi] Reading from pointers. Reply with quote

Hello.

I am writing to you, because I have problem in reading pointers in Delphi.
Previously I worked with client where addresess were static, so to be able to read them I used simple code like memreadinteger.
It looked like that:
Code:
 function MemReadInteger(Address: Cardinal): Cardinal;       //Read adress:value
var
ProcId: Cardinal;
tProc: THandle;
NBR: Size_T;
value:integer;
begin
    GetWindowThreadProcessId(FindWindow('Nazwa,Nil), @ProcId);
    tProc:= OpenProcess(PROCESS_ALL_ACCESS, False, ProcId);
    ReadProcessMemory(tProc, Ptr(Address), @value, 4, NBR);
    CloseHandle(tProc);
    Result:=value;
end;


Now, because I am trying to work on new client addresess are not static, so it's much difficult to read from them.
This picture shows how it looks like (pointer):
[img]zapodaj.net/images/c8f4dddf9e194.png[/img]
Is anyone able to help me?
I want something like Spinedit1.value := value from this pointer.

Thanks.
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