| View previous topic :: View next topic |
| Author |
Message |
jongwee Moderator
Reputation: 0
Joined: 28 Jun 2006 Posts: 1388 Location: Singapore
|
Posted: Thu Dec 13, 2007 2:55 am Post subject: |
|
|
| Code: | function hhPostMessageA(
hWnd:HWND;
MSG:UINT;
WPARAM:wParam;
LPARAM:lParam):BOOL;stdcall; //
external 'hookhop.dll' name 'hhPostMessageA';
procedure TVexClix.clickieTimer(Sender: TObject);
var
h:hwnd;
Point:TPoint;
x,y:integer;
begin
GetCursorPos(Point);
x:=Point.X;
y:=Point.Y;
h:=FindWindowA(nil,'MapleStory');
if h<>0 then
begin
hhPostMessageA(h,WM_LBUTTONDBLCLK,0,MakeLong(X,Y));
sleep(10);
hhPostMessageA(h,WM_LBUTTONUP,0,MakeLong(X,Y));
Application.ProcessMessages;
end;
end; |
_________________
|
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
Posted: Thu Dec 13, 2007 3:12 pm Post subject: |
|
|
New question read first post
c++ was so buggy so i whant to remake it for delphi now ... _________________
dont complain about my english...
1*1 = 2? |
|
| Back to top |
|
 |
jongwee Moderator
Reputation: 0
Joined: 28 Jun 2006 Posts: 1388 Location: Singapore
|
Posted: Thu Dec 13, 2007 6:44 pm Post subject: |
|
|
Delphi? Read the post above you which is mine. Basically a copy pasta. _________________
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Thu Dec 13, 2007 8:55 pm Post subject: |
|
|
| It's your Wparam and your Lparam. I never got looting to work in ms, i tried switching the Params and failed still. But a suggestion, instead of putting ord(vk_space), replace that with $20. or try MapVirtualkey($20,0); |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Thu Dec 13, 2007 10:01 pm Post subject: |
|
|
Wait, slip if you never got that to work then how did you make cppbot? >.> _________________
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Thu Dec 13, 2007 10:45 pm Post subject: |
|
|
Well, what i meant to say is that, i never got it to work in delphi, but in C++, it was different  |
|
| Back to top |
|
 |
Uzeil Moderator
Reputation: 6
Joined: 21 Oct 2006 Posts: 2411
|
Posted: Fri Dec 14, 2007 12:22 am Post subject: |
|
|
I made it work, although my postmessage API is all in my API.pas unit.
Anywho, your issue is your scancode. I'll post plenty after I've released this project, assuming I've finished it. _________________
|
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
|
| Back to top |
|
 |
mOnSoOn Expert Cheater
Reputation: 0
Joined: 05 Jul 2007 Posts: 203
|
Posted: Fri Dec 14, 2007 6:03 am Post subject: |
|
|
In other words:
Window Procedure  |
|
| Back to top |
|
 |
|