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 


PostMessage and lParam
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jan 07, 2008 10:28 am    Post subject: PostMessage and lParam Reply with quote

Heyyy everyone,

I was bored and decided to make a lil bot with the PMX.dll which works great Smile
But appalsap and blankrider told me that some keys (not all) are blocked from MapleStory when I asked why this wont work (even with GGLES):
Code:
PostMessageX(MS,wm_KeyDown,VK_Control, 0);

And they told me it's because the lParam.
So I searched around here for this problem and got in a thread from someone and he used this code:
(Well he used it in C and I just converted it in delphi, I hope correct)
Code:
procedure SendWut(input: Char);
var
  MS: HWND;
  scancode: cardinal;
  key: Short;
begin
key := VkKeyScan(input);
scancode := MapVirtualKey(key, 0);
MS := FindWindow('MapleStoryClass', NIL);
  if MS <>0 then
    begin
      PostMessageX(MS,wm_KeyDown,key, scancode);
      PostMessageX(MS,wm_KeyUp,key, scancode);
    end;
end;


But it wont work with this either.
Wont this work anymore? Or is it just complete bullshit? Shocked

Thanks in advance Very Happy


Last edited by Reak on Mon Jan 07, 2008 10:44 am; edited 1 time in total
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Jan 07, 2008 10:34 am    Post subject: Reply with quote

Im sure you need HookHop.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Jan 07, 2008 10:47 am    Post subject: Reply with quote

Ugh, scan code doesn't go to wParam?

You know what else is weird? I type in lParam 5 for example and it still types only once. Confused

Need to fix the bits? lParam returns X as X shl 16 (x << 16) and Y as Y and $0FFF (Y & 0x0FFF)


Last edited by Symbol on Mon Jan 07, 2008 11:10 am; edited 1 time in total
Back to top
View user's profile Send private message
Michel
Expert Cheater
Reputation: 0

Joined: 16 May 2007
Posts: 214
Location: The Netherlands

PostPosted: Mon Jan 07, 2008 11:09 am    Post subject: Reply with quote

dnsi0 wrote:
Im sure you need HookHop.

HookHop and PMX always did the same, so I assume they still do
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Jan 07, 2008 11:11 am    Post subject: Reply with quote

I have a macro program that I made in delphi somewhere so Ill look for it. So Wait a few moments.

Edit: Ah Ha. I found it!!!!!!!

Wnd := GetForegroundWindow();
Sendmessage(Wnd, WM_KEYDOWN, $D, 0);
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Jan 07, 2008 11:15 am    Post subject: Reply with quote

SendMessage doesn't work even bypassed.
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Jan 07, 2008 11:20 am    Post subject: Reply with quote

So just leave that lParm or whatever as 0 or nil.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Jan 07, 2008 11:36 am    Post subject: Reply with quote

Wouldn't work either...
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Jan 07, 2008 11:48 am    Post subject: Reply with quote

i'd recommend you to use (if you want) hookhop.dll by sponge, he invested 1 hour on it, i only 5min (was just for an example).

pmx.dll isn't working anymore i think

btw, i don't understand why MapleStoryClass and not MapleStory ?
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Jan 07, 2008 11:50 am    Post subject: Reply with quote

I think its that The Module is better than the Window or somethin.
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jan 07, 2008 12:13 pm    Post subject: Reply with quote

PMX.dll is still working.
MapleStory itself has a check or something which checks if they Keystroke comes from a bot or from a Keyboard.
Bot it doesn't do that with all keys, for example:
I tried vk_Return = did work
vk_Control = didn't work

appalsap&blankrider told me it is because if the lParam.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Jan 07, 2008 12:14 pm    Post subject: Reply with quote

Because of the lParam that does...? WHY is it blocked? don't use lParam then?
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jan 07, 2008 12:15 pm    Post subject: Reply with quote

rEakW0n wrote:
PMX.dll is still working.
MapleStory itself has a check or something which checks if they Keystroke comes from a bot or from a Keyboard.
Bot it doesn't do that with all keys, for example:
I tried vk_Return = did work
vk_Control = didn't work

appalsap&blankrider told me it is because if the lParam.


dnsi0 wrote:
I have a macro program that I made in delphi somewhere so Ill look for it. So Wait a few moments.

Edit: Ah Ha. I found it!!!!!!!

Wnd := GetForegroundWindow();
Sendmessage(Wnd, WM_KEYDOWN, $D, 0);


See, I think D (if $D means D) is not blocked.
And why GetForegroundWindow(); ?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Jan 07, 2008 12:19 pm    Post subject: Reply with quote

Actually $ represents its an hexadecimalic number, means D = 13. (VK_Return)
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Mon Jan 07, 2008 12:22 pm    Post subject: Reply with quote

Yes and vk_Return works fine.
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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