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 


[Botting] Sending messages to the process, or something..

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Aug 29, 2007 7:33 am    Post subject: [Botting] Sending messages to the process, or something.. Reply with quote

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 Smile
Back to top
View user's profile Send private message
sphere90
Grandmaster Cheater
Reputation: 0

Joined: 24 Jun 2006
Posts: 912

PostPosted: Wed Aug 29, 2007 8:12 am    Post subject: Reply with quote

TranslateMessage and DispatchMessage.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Aug 29, 2007 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Aug 29, 2007 9:27 am    Post subject: Reply with quote

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

Joined: 15 Oct 2006
Posts: 3938
Location: Where ever I am

PostPosted: Wed Aug 29, 2007 12:19 pm    Post subject: Reply with quote

http://www.winprog.org/tutorial/index.html

Razz

_________________

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Aug 29, 2007 1:28 pm    Post subject: Reply with quote

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

Joined: 15 Oct 2006
Posts: 3938
Location: Where ever I am

PostPosted: Wed Aug 29, 2007 2:16 pm    Post subject: Reply with quote

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 Smile


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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
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