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 Problem [Auto Clicker]

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

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

PostPosted: Sat May 03, 2008 8:26 pm    Post subject: Delphi Problem [Auto Clicker] Reply with quote

Ok new problem when i press run (Green play button) It has the msg shown in picture bellow. I tryed to go run>parameters>browse>PMX.dll. That didn't work XD

NEW PROBLEM:



Code:
procedure TForm2.AutoclickTimerTimer(Sender: TObject);
var
h:hwnd;
Point:TPoint;
x,y:integer;
begin
GetCursorPos(Point);
x:=Point.X;
y:=Point.Y;
h:=FindWindowA('MapleStoryClass',nil);
if h<>0 then
begin
hhPostMessageA(h,WM_LBUTTONDBLCLK,0,MakeLong(X,Y)) ;
hhPostMessageA(h,WM_LBUTTONUP,0,MakeLong(X,Y));
Application.ProcessMessages;
end;
end;


The last bit of the code is where the error is the two end; end;

_________________


Last edited by angerist on Sat May 03, 2008 11:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Sat May 03, 2008 9:43 pm    Post subject: Reply with quote

you might have accidentally removed the last end.
_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
angerist
Grandmaster Cheater Supreme
Reputation: 0

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

PostPosted: Sat May 03, 2008 10:35 pm    Post subject: Reply with quote

Ohhh. Im guessing the last end would be "end." rather then "end;"?

EDIT: That worked but when i press the play button. I get this error

I tryed going Run > Parameters > Browse > PMX.dll. But that didn't work

_________________
Back to top
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Sun May 04, 2008 1:08 am    Post subject: Reply with quote

I think that's because it's a DLL, as I can see, your project is called "Project1.dll".
You can't run DLLs by using the "Play" button.
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Sun May 04, 2008 3:46 am    Post subject: Reply with quote

DLLs can't be run without a host application, so you need to inject it into something, or have a program load it
_________________
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