| View previous topic :: View next topic |
| Author |
Message |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Mon Jan 07, 2008 10:28 am Post subject: PostMessage and lParam |
|
|
Heyyy everyone,
I was bored and decided to make a lil bot with the PMX.dll which works great
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?
Thanks in advance
Last edited by Reak on Mon Jan 07, 2008 10:44 am; edited 1 time in total |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Jan 07, 2008 10:34 am Post subject: |
|
|
| Im sure you need HookHop.
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Jan 07, 2008 10:47 am Post subject: |
|
|
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.
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 |
|
 |
Michel Expert Cheater
Reputation: 0
Joined: 16 May 2007 Posts: 214 Location: The Netherlands
|
Posted: Mon Jan 07, 2008 11:09 am Post subject: |
|
|
| dnsi0 wrote: | | Im sure you need HookHop. |
HookHop and PMX always did the same, so I assume they still do
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Jan 07, 2008 11:11 am Post subject: |
|
|
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Jan 07, 2008 11:15 am Post subject: |
|
|
| SendMessage doesn't work even bypassed.
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Jan 07, 2008 11:20 am Post subject: |
|
|
| So just leave that lParm or whatever as 0 or nil.
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Jan 07, 2008 11:36 am Post subject: |
|
|
| Wouldn't work either...
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Jan 07, 2008 11:48 am Post subject: |
|
|
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 |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Jan 07, 2008 11:50 am Post subject: |
|
|
| I think its that The Module is better than the Window or somethin.
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Mon Jan 07, 2008 12:13 pm Post subject: |
|
|
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Jan 07, 2008 12:14 pm Post subject: |
|
|
| Because of the lParam that does...? WHY is it blocked? don't use lParam then?
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Mon Jan 07, 2008 12:15 pm Post subject: |
|
|
| 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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Jan 07, 2008 12:19 pm Post subject: |
|
|
| Actually $ represents its an hexadecimalic number, means D = 13. (VK_Return)
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Mon Jan 07, 2008 12:22 pm Post subject: |
|
|
| Yes and vk_Return works fine.
|
|
| Back to top |
|
 |
|