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 Memory Editing Help?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
xkasperx
How do I cheat?
Reputation: 0

Joined: 13 Mar 2007
Posts: 9

PostPosted: Sun Jan 04, 2009 11:29 pm    Post subject: Delphi Memory Editing Help? Reply with quote

I was wonder how would i make a program in delphi which edits memory of a certain game
Back to top
View user's profile Send private message AIM Address
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Jan 04, 2009 11:35 pm    Post subject: Reply with quote

The same was as any other language.

http://msdn.microsoft.com/en-us/library/ms681674(VS.85).aspx
Back to top
View user's profile Send private message
xkasperx
How do I cheat?
Reputation: 0

Joined: 13 Mar 2007
Posts: 9

PostPosted: Sun Jan 04, 2009 11:37 pm    Post subject: Reply with quote

got an example?? cuz its hard to understand without examples >> sry if thats too much to ask bcuz thats the way i learn things
Back to top
View user's profile Send private message AIM Address
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Mon Jan 05, 2009 12:03 am    Post subject: Reply with quote

xkasperx wrote:
got an example?? cuz its hard to understand without examples >> sry if thats too much to ask bcuz thats the way i learn things

An example can be found here, here or here. (Or there).

_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Jan 05, 2009 4:39 am    Post subject: Reply with quote

It's normal not to understand without seeing a basic sample:

Fill in the Address (VA) and the ID of the Process

This will patch 2 byte nop

Code:
procedure PatchSomeProcess(const Address: Integer; dwProcessId: DWORD);
const aBuffer: Word = ($90);
var
hProcess: THandle;
lol: DWORD;
begin
hProcess := OpenProcess( PROCESS_VM_WRITE or PROCESS_VM_OPERATION, False, dwProcessId );
WriteProcessMemory( hProcess, Ptr(Address), aBuffer, sizeof(aBuffer), lol );
CloseHandle( hProcess );
end;
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25830
Location: The netherlands

PostPosted: Mon Jan 05, 2009 7:55 am    Post subject: Reply with quote

This is what you need:
http://ce.colddot.nl/browser/Cheat%20Engine

It's in delphi
and it's a memory editor
What else do you want ?

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
xkasperx
How do I cheat?
Reputation: 0

Joined: 13 Mar 2007
Posts: 9

PostPosted: Mon Jan 05, 2009 4:43 pm    Post subject: Reply with quote

thx rot1 and dark byte for the help
Back to top
View user's profile Send private message AIM Address
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Tue Jan 06, 2009 5:24 am    Post subject: Reply with quote

xkasperx wrote:
thx rot1 and dark byte for the help


You're welcome, Ptr() is a useful function when it comes to memory management.

Converts a specified address to an untyped pointer.
Back to top
View user's profile Send private message
angerist
Grandmaster Cheater Supreme
Reputation: 0

Joined: 18 Jun 2007
Posts: 1011
Location: Australia.

PostPosted: Fri Jan 16, 2009 6:14 pm    Post subject: Reply with quote

Rot looking at your code how would one fill this in. Sorry it just takes a while for things to click in my head.


So here's your code..

Code:
procedure PatchSomeProcess(const Address: Integer; dwProcessId: DWORD);
const aBuffer: Word = ($90);
var
hProcess: THandle;
lol: DWORD;
begin
hProcess := OpenProcess( PROCESS_VM_WRITE or PROCESS_VM_OPERATION, False, dwProcessId );
WriteProcessMemory( hProcess, Ptr(Address), aBuffer, sizeof(aBuffer), lol );
CloseHandle( hProcess );
end;



Is this where I put the process Id

Code:
 dwProcessId );


And do I place the address in the (Address) bracket.

Thank you anyone in advance

And yes I'm a complete noob at delphi

_________________
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