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] WPM

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

Joined: 25 Feb 2007
Posts: 596

PostPosted: Sat Jan 26, 2008 3:51 pm    Post subject: [Delphi] WPM Reply with quote

I was wandering if i could make some what of a trainer. But first i need some one to help me.
Code:
function WriteProcessMemory(hProcess: THandle; const lpBaseAddress: Pointer; lpBuffer: Pointer;
  nSize: DWORD; var lpNumberOfBytesWritten: DWORD): BOOL; stdcall; external kernel32 name 'WriteProcessMemory';

Now what to do?
Im kinda noobish at delphi
Back to top
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Sat Jan 26, 2008 4:18 pm    Post subject: Reply with quote

http://www.theoklibrary.org/showthread.php?t=272
Read that, it's a tut for trainer making in Delphi.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Jan 27, 2008 4:35 am    Post subject: Reply with quote

I think you can use WriteProcessMemory without importing kernel32 in delphi.

I don't have delphi here, I'm at school, but I think this is how you use:

procedure whatever(...);
var
Wnd: hWnd;
hProcess: THandle;
Bytes: Array of Byte;
pID, BytesRead: Integer;
begin
Wnd := FindWindow(nil,'Untitled - notepad');
GetWindowThreadProcessId(Wnd, @pID);
hProcess := OpenProcess(Access, Boolean, pID);
Bytes := [$0A, $1B, $2C, $3D, $4E]
WriteProcessMemory(hProcess, $Address, Bytes, 5, BytesRead);
end;

Not sure...
Back to top
View user's profile Send private message
homer_simpson
Grandmaster Cheater
Reputation: 0

Joined: 25 Feb 2007
Posts: 596

PostPosted: Sun Jan 27, 2008 7:32 am    Post subject: Reply with quote

Ty guys i got it Razz
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