| View previous topic :: View next topic |
| Author |
Message |
angerist Grandmaster Cheater Supreme
Reputation: 0
Joined: 18 Jun 2007 Posts: 1011 Location: Australia.
|
Posted: Sat May 03, 2008 8:26 pm Post subject: Delphi Problem [Auto Clicker] |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25968 Location: The netherlands
|
Posted: Sat May 03, 2008 9:43 pm Post subject: |
|
|
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 |
|
 |
angerist Grandmaster Cheater Supreme
Reputation: 0
Joined: 18 Jun 2007 Posts: 1011 Location: Australia.
|
Posted: Sat May 03, 2008 10:35 pm Post subject: |
|
|
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 |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Sun May 04, 2008 1:08 am Post subject: |
|
|
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 |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Sun May 04, 2008 3:46 am Post subject: |
|
|
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 |
|
 |
|