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 


PostMessageX
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
jongwee
Moderator
Reputation: 0

Joined: 28 Jun 2006
Posts: 1388
Location: Singapore

PostPosted: Thu Dec 13, 2007 2:55 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Thu Dec 13, 2007 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
jongwee
Moderator
Reputation: 0

Joined: 28 Jun 2006
Posts: 1388
Location: Singapore

PostPosted: Thu Dec 13, 2007 6:44 pm    Post subject: Reply with quote

Delphi? Read the post above you which is mine. Basically a copy pasta.
_________________
Back to top
View user's profile Send private message MSN Messenger
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Thu Dec 13, 2007 8:55 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Thu Dec 13, 2007 10:01 pm    Post subject: Reply with quote

Wait, slip if you never got that to work then how did you make cppbot? >.>
_________________
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Thu Dec 13, 2007 10:45 pm    Post subject: Reply with quote

Well, what i meant to say is that, i never got it to work in delphi, but in C++, it was different Wink
Back to top
View user's profile Send private message AIM Address MSN Messenger
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Fri Dec 14, 2007 12:22 am    Post subject: Reply with quote

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.

_________________


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
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Fri Dec 14, 2007 2:56 am    Post subject: Reply with quote

jongwee wrote:
Delphi? Read the post above you which is mine. Basically a copy pasta.


which now only works for the mouse Rolling Eyes

and i just noticed when i use it in delphi my projact closes in 3 seconds Oo

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
mOnSoOn
Expert Cheater
Reputation: 0

Joined: 05 Jul 2007
Posts: 203

PostPosted: Fri Dec 14, 2007 6:03 am    Post subject: Reply with quote

In other words:
Window Procedure Smile
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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