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 


[Request] Delphi Tut on making a trainer +Rep

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

Joined: 12 Nov 2007
Posts: 822

PostPosted: Mon Dec 01, 2008 9:08 pm    Post subject: [Request] Delphi Tut on making a trainer +Rep Reply with quote

Yea Im new to making trainers and all and I need a tutorial on how to make a Maplestory trainer or Halo CE Trainer any one will do...
For maplestory puting in scripts for VB 6 was weird and didn't work out well
So yea...
Or a basic tut will help to such as a trainer for minesweeper or whatever
not like flash games cause thats to easy =O

And please show me how to like attach a process

Thanks in request
Will give rep to who ever helps me D=

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Dec 01, 2008 9:13 pm    Post subject: Reply with quote

FindWindow / CreateToolHelp32Snapshot to ultimately get a process handle.
OpenProcess
Write/ReadProcessMemory

Look them up on MSDN
Back to top
View user's profile Send private message
ello154
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2007
Posts: 822

PostPosted: Mon Dec 01, 2008 9:16 pm    Post subject: Reply with quote

slovach wrote:
FindWindow / CreateToolHelp32Snapshot to ultimately get a process handle.
OpenProcess
Write/ReadProcessMemory

Look them up on MSDN


Wait where do I go to the FindWindor / CreateToolHelp32Snapshot?
and Whats MSDN do I google it?
Sorry for my noobyness at this stuff D=

_________________
Back to top
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Mon Dec 01, 2008 10:04 pm    Post subject: Reply with quote

Rot1 Posted this somewhere (it is an example of memory editing):
Code:
Procedure InjectPinTyper(Address:Cardinal; nCase:ShortInt); export;
const aInject:Array [0..2] of byte = ($0F, $83, $6C); //Modifies 1 BYTE, 85 to 83
      aEject:Array [0..2] of byte = ($0F, $85, $6C);
      Access = PROCESS_VM_WRITE or PROCESS_VM_OPERATION;
Begin
hWindow:=FindWindow('MapleStoryClass', nil);
if hWindow<>0 then
 case nCase of
  1: //Inject PT
   Try
      GetWindowThreadProcessId(hWindow, @PID);
      hProcess:=OpenProcess(Access, FALSE, PID);
      WriteProcessMemory(hProcess, Ptr(Address), @aInject, sizeof(aInject), lpBytes);
      CloseHandle(hProcess);
     except
      ShowMessageFmt('GetLastError Code: %.d', [IntToStr(GetLastError())]);
   End;
  2: //Eject PT
   Try
      GetWindowThreadProcessId(hWindow, @PID);
      hProcess:=OpenProcess(Access, FALSE, PID);
      WriteProcessMemory(hProcess, Ptr(Address), @aEject, sizeof(aEject), lpBytes);
      CloseHandle(hProcess);
     except
      ShowMessageFmt('GetLastError Code: %.d', [IntToStr(GetLastError())]);
   End;
  End;
End;


MSDN:
http://msdn.microsoft.com/en-us/default.aspx
Back to top
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Tue Dec 02, 2008 12:00 am    Post subject: Reply with quote

Use FindWindow, GetWindowThreadProcessID,OpenProcess,Read/WriteProcessMemory.

If you want a c++ tut, pm me.
Back to top
View user's profile Send private message
ello154
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2007
Posts: 822

PostPosted: Tue Dec 02, 2008 6:16 pm    Post subject: Reply with quote

kb3z0n wrote:
Use FindWindow, GetWindowThreadProcessID,OpenProcess,Read/WriteProcessMemory.

If you want a c++ tut, pm me.


Yea Ok since Theres like no delphi tuts I guess

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Dec 02, 2008 6:24 pm    Post subject: Reply with quote

It's the exact same concept, just the syntax is different.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Dec 02, 2008 6:31 pm    Post subject: Reply with quote

If you don't know what Findwindow is, and MSDN for that matter, I suggest learning the language before making a trainer.
_________________
Back to top
View user's profile Send private message Send e-mail
ello154
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2007
Posts: 822

PostPosted: Tue Dec 02, 2008 6:45 pm    Post subject: Reply with quote

kitterz wrote:
If you don't know what Findwindow is, and MSDN for that matter, I suggest learning the language before making a trainer.


Lol ok let me look in the stickies

_________________
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