 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
boredtc How do I cheat?
Reputation: 0
Joined: 04 Dec 2010 Posts: 7
|
Posted: Sun Dec 05, 2010 8:33 am Post subject: Finding address |
|
|
Basicly, what i want to know, is how do i achive this in Delphi;
I have the pointer that ALWAYS points to the right address of my health only, nomatter how many times i reboot the game.
Now how do I achive in Delphi, that the program knows where the dynamic health address is located via the multi-level (4) pointer i've found.
How do I re-direct to the dynamic address pointed to.
A snippet would help me a bunch!
Cheers!
*edit* I accidentally started a new thread, sorry
|
|
Back to top |
|
 |
boredtc How do I cheat?
Reputation: 0
Joined: 04 Dec 2010 Posts: 7
|
Posted: Tue Dec 07, 2010 3:48 pm Post subject: update |
|
|
Ok, I've come up with this;
I now know how I get the dynamic health address using the pointers and offsets.
It always shows me an dynamic address, wich I paste in CE by adding address manually, and freeze in CE.
Yes, this freezes my health every time!
Now when I programaticly change this using an previous working template in Delphi, nothing happens!
Below my code;
Code: |
var
hProcess,HandleWindow: THandle;
ProcessID,temp:cardinal;
i:integer;
const
addresses1:array [0..0] of dword=($3E069FFC);
patches1:array [0..3] of byte=($90,$90,$90,$90);
procedure TForm1.BitBtn2Click(Sender: TObject);
begin
HandleWindow :=FindWindow('blablawindowname');
GetWindowThreadProcessId(HandleWindow,@ProcessID);
hProcess := OpenProcess(PROCESS_ALL_ACCESS,FALSE,ProcessID);
for i:=0 to 2 do WriteProcessMemory(hProcess,ptr(addresses1),@patches1[i],1,temp);
end;
end. |
offcourse the address changes every reboot, but just too make it clear...
So in CE this address freezes like a charm, but in Delphi it doesn't do anything.
This code use to work in Aliens vs Predator 2010 earlier.
Cheers!
|
|
Back to top |
|
 |
|
|
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
|
|