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 Question

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

Joined: 08 Jun 2007
Posts: 9

PostPosted: Mon Jun 18, 2007 4:25 pm    Post subject: Delphi Question Reply with quote

Hi all, well what i need help with is a button then when you press it, it hooks to the game i want it to, but if it cant find the game open then it wont hook? any ideas? The game is called legendofmir Btw Embarassed
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Mon Jun 18, 2007 5:24 pm    Post subject: Reply with quote

I suggest starting a bit simpler than hooking processes.
_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
ravicus
Master Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 464

PostPosted: Mon Jun 18, 2007 6:15 pm    Post subject: Reply with quote

Do you know how to show a messagebox in delphi? Very Happy
_________________
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Mon Jun 18, 2007 7:09 pm    Post subject: Reply with quote

Code:

ShowMessage('Your message goes here.');

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ravicus
Master Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 464

PostPosted: Tue Jun 19, 2007 5:19 pm    Post subject: Reply with quote

oib111 wrote:
Code:

ShowMessage('Your message goes here.');


Not you.

If he can't do that, he shouldn't even be asking.

_________________
Back to top
View user's profile Send private message
sp0k3
How do I cheat?
Reputation: 0

Joined: 08 Jun 2007
Posts: 9

PostPosted: Tue Jun 19, 2007 5:27 pm    Post subject: Reply with quote

I no abit about delphi allready like variables and stuff, strings ect but could anyone supply me with an example code?
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Jun 19, 2007 5:39 pm    Post subject: Reply with quote

To hook a process. Uh, I don't know how to do that. Ask someone like Kaspersky, appal, or any other person who is a good with delphi.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
sp0k3
How do I cheat?
Reputation: 0

Joined: 08 Jun 2007
Posts: 9

PostPosted: Tue Jun 19, 2007 5:46 pm    Post subject: Reply with quote

Ok ty mate
Back to top
View user's profile Send private message
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Tue Jun 19, 2007 6:56 pm    Post subject: Reply with quote

Code:
var WindowName: THandle;
ProcessId: Dword;
ThreadId: Dword;
legendofmir: THandle;

const
WindowTitle = 'MapleStory';

Begin
WindowName := FindWindow(nil, WindowTitle);
ThreadId := GetWindowThreadProcessId(WindowName, @ProcessId);
legendofmir:=Openprocess(PROCESS_ALL_ACCESS,TRUE,ProcessId);
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Jun 19, 2007 7:04 pm    Post subject: Reply with quote

Code:

var
ProcessId: Dword;

begin
if not boolean(GetWindowThreadProcessId(FindWindow('MapleStoryClass', 'MapleStory'), @ProcessId)) then ShowMessage('fail') else
CloseHandle(OpenProcess(PROCESS_ALL_ACCESS, TRUE, ProcessId));


cleaner Surprised

_________________
Back to top
View user's profile Send private message
sp0k3
How do I cheat?
Reputation: 0

Joined: 08 Jun 2007
Posts: 9

PostPosted: Tue Jun 19, 2007 7:28 pm    Post subject: Reply with quote

Thanks guys, but that code looks abit complicated to me, say i changed the MapleStory for legendofmir then this code would work?
Back to top
View user's profile Send private message
ravicus
Master Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 464

PostPosted: Tue Jun 19, 2007 7:34 pm    Post subject: Reply with quote

If all you know is basics such as...
Variables
Arithmetic
Basic GUI Functions
Strings

Then you need to expand your knowledge, look more into the assembly side of the language, and learn some stuff about functions and such.

_________________
Back to top
View user's profile Send private message
sp0k3
How do I cheat?
Reputation: 0

Joined: 08 Jun 2007
Posts: 9

PostPosted: Tue Jun 19, 2007 7:35 pm    Post subject: Reply with quote

Ok thanks for the advice 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