| View previous topic :: View next topic |
| Author |
Message |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Aug 29, 2007 7:33 am Post subject: [Botting] Sending messages to the process, or something.. |
|
|
Hi
I have a DLL that I inject to maple, and I want to put in it a bot. I thought about sending messages to the process that the DLL is injected to, I just don't know exactly how to do it..
Any help would be appriciated  |
|
| Back to top |
|
 |
sphere90 Grandmaster Cheater
Reputation: 0
Joined: 24 Jun 2006 Posts: 912
|
Posted: Wed Aug 29, 2007 8:12 am Post subject: |
|
|
| TranslateMessage and DispatchMessage. |
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Aug 29, 2007 9:08 am Post subject: |
|
|
Thanks, I've just found out how to do it..
But I still need 1 more thing:
In the DLL that I inject to maple, how can I get maple's HWND? |
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Aug 29, 2007 9:27 am Post subject: |
|
|
Won't GG detect it?
BTW, thanks x0r, I saw a code you post some time ago and it explained me some stuff. |
|
| Back to top |
|
 |
Liquid369 I post too much
Reputation: 0
Joined: 15 Oct 2006 Posts: 3938 Location: Where ever I am
|
Posted: Wed Aug 29, 2007 12:19 pm Post subject: |
|
|
http://www.winprog.org/tutorial/index.html
 _________________
People are of no value.
We could make more sometime.
If we need them.
Life itself is only vision, a dream.
Nothing exists in empty space and you.
And you are but a thought. |
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Aug 29, 2007 1:28 pm Post subject: |
|
|
Don't want to interrupt, lol, but just 1 quick question:
In order to get Maple's HWND, should I do:
| Code: | HWND hWnd;
hWnd = FindWindow(NULL,"MapleStory");
|
? |
|
| Back to top |
|
 |
Liquid369 I post too much
Reputation: 0
Joined: 15 Oct 2006 Posts: 3938 Location: Where ever I am
|
Posted: Wed Aug 29, 2007 2:16 pm Post subject: |
|
|
| x0r wrote: | Well you don't know how the WndProc works and you don't know C++ works so I'm sure you're lying. Feel free to post an example though. If you do I'll put whatever you want in my signature for a week  |
Done Deal
Now let me finish fucking around with FlyFF and I will get back to this abit later
Edit: Here you go
| Code: | void __declspec(dllexport)__stdcall ProcessMsg(UINT Message, WPARAM wParam, LPARAM lParam)
{
MSG Msg;
ZeroMemory(&Msg, sizeof(MSG));
Msg.hwnd = FindWindow("MapleStoryClass", "MapleStory");
Msg.lParam = lParam;
Msg.message = Message;
Msg.wParam = wParam;
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
ProcessMsg(WM_KEYDOWN, 0x11, 0x1D0001); |
Now what should you be putting into your signature...hmm _________________
People are of no value.
We could make more sometime.
If we need them.
Life itself is only vision, a dream.
Nothing exists in empty space and you.
And you are but a thought. |
|
| Back to top |
|
 |
|