| View previous topic :: View next topic |
| Author |
Message |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Fri Aug 31, 2007 4:18 am Post subject: [Maple] Wierd thing happened.. |
|
|
Hey
I used the TranslateMessage and DispatchMessage functions to send a message to maple, but something wierd happened..
When I was in game, I clicked the hotkey that I made to send the message (It was supposed to send WM_KEYDOWN and WM_KEYUP of the button 'Z', which I put for jump) and nothing happend. But, when I clicked enter to write something and then clicked the hotkey, it wrote 'z' twice.
The code I used:
| Code: |
if( GetAsyncKeyState( VK_F8 ) )
{
MSG Msg;
Msg.hwnd = hWnd;
Msg.lParam = 0;
Msg.wParam = 'Z';
Msg.message = WM_KEYDOWN;
Msg.time = 0;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
Msg.message = WM_KEYUP;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
|
Does anyone knows what's the problem? |
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Aug 31, 2007 6:13 am Post subject: |
|
|
my guess they patched keystrokes but with translate msg it types but doesnt preforms moving events (move, jump, shoot...)
try other keys? like I for Inventory? see if it opens and then tell us =P but who knows, maybe im wrong, just a guess... |
|
| Back to top |
|
 |
Grieverus Expert Cheater
Reputation: 0
Joined: 31 Aug 2007 Posts: 136
|
Posted: Fri Aug 31, 2007 9:09 am Post subject: |
|
|
| is there anyway to bypass gg |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Aug 31, 2007 10:02 am Post subject: |
|
|
copy zuans driver  _________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
SystemShock How do I cheat?
Reputation: 0
Joined: 31 Aug 2007 Posts: 8
|
Posted: Fri Aug 31, 2007 10:04 am Post subject: |
|
|
Poor MS its been haxd soo much. Its gonna Splode soon.  |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Aug 31, 2007 10:09 am Post subject: |
|
|
fuck ms, go ghost online. i had to quit though cuz of school =( _________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
SystemShock How do I cheat?
Reputation: 0
Joined: 31 Aug 2007 Posts: 8
|
Posted: Fri Aug 31, 2007 10:12 am Post subject: |
|
|
| Yea Ghost is ok and also DragonGem. |
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Fri Aug 31, 2007 12:58 pm Post subject: |
|
|
| oib111 wrote: | copy zuans driver  |  _________________
|
|
| Back to top |
|
 |
kittonkicker I post too much
Reputation: 1
Joined: 19 Apr 2006 Posts: 2171
|
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Fri Aug 31, 2007 1:38 pm Post subject: |
|
|
A follow up hint: WParam & LParam are both considered "extra" instructions..
WParam is the virtual keycode, so what do you think LParam could be? (the opposite of virtual is...?) |
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Fri Aug 31, 2007 4:07 pm Post subject: |
|
|
SCANCODE!!!!!!!!!! i already released the format. and so did x0r and so did john. _________________
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Sun Sep 02, 2007 3:54 am Post subject: |
|
|
Ok, I'm not sure I understand it completely, but will this work?
| Code: |
MSG Msg;
Msg.hwnd = hWnd;
Msg.lParam = MapVirtualKey('z',MAPVK_VK_TO_VSC);
Msg.wParam = 0;
Msg.message = WM_KEYDOWN;
Msg.time = 0;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
Msg.message = WM_KEYUP;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
|
I couldn't find sponge/x0r/john explainations.. |
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Sun Sep 02, 2007 7:52 am Post subject: |
|
|
0x1D0001 for LPARAM
But I don't know why you are doing it this way, I would create a function that send keys and use it whenever I need. Like this: | Code: | void __declspec(dllexport)__stdcall Send(UINT Message, WPARAM Wp, LPARAM Lp)
{
HWND hWND = FindWindow("MapleStoryClass", "MapleStory");
MSG Msg;
Msg.hwnd = hWND;
Msg.lParam = Lp;
Msg.message = Message;
Msg.wParam = Wp;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
} |
And then use it like this: | Code: | | Send(WM_KEYDOWN, 0x53, 0x1D0001); |
_________________
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Sun Sep 02, 2007 8:08 am Post subject: |
|
|
I've just figured it up
I did something like:
| Code: |
MSG Msg;
Msg.hwnd = hWnd;
Msg.lParam = (MapVirtualKey('Z',0) << 16) & 0x00FF0000;
Msg.wParam = 0;
Msg.message = WM_KEYDOWN;
Msg.time = 0;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
Msg.message = WM_KEYUP;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
|
And it was just a check to see if it works, now I'll really make a function.
Tnx for the help anyone..
BTW
In the way that I did, it'll only jump in maple when I click the hotkey, but it won't write 'z' when I click enter, so it's very comfortable. |
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Sun Sep 02, 2007 9:48 am Post subject: |
|
|
| Why not just SendMessage.... |
|
| Back to top |
|
 |
|