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 


Listen for commands being sent to a process

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
filyr
Newbie cheater
Reputation: 0

Joined: 02 Aug 2013
Posts: 10

PostPosted: Fri Aug 09, 2013 4:16 pm    Post subject: Listen for commands being sent to a process Reply with quote

Let's take a simple example:

I'll start up notepad.exe -> attach cheat engine -> type the letter "a" in notepad.

Is there any way to listen for the actual low-level message being sent to the process?

My goal is to simulate the very same message programatically.

Thanks
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Fri Aug 09, 2013 4:54 pm    Post subject: Reply with quote

if you want to simulate key presses (in notepad) from your application, use FindWindowA function (user32.dll) to get the notepad window, then use SendMessageA function with WM_KEYDOWN and WM_KEYUP messages.
Back to top
View user's profile Send private message
filyr
Newbie cheater
Reputation: 0

Joined: 02 Aug 2013
Posts: 10

PostPosted: Fri Aug 09, 2013 5:40 pm    Post subject: Reply with quote

Thanks for the feedback.

My goal is to send the commands to a game. However, I noticed that the game is blocking all messages that are associated with movement.

I guess that leaves me with focusing the game window -> simulating keypresses on the actual window, instead of sending messages to it. Or do you have any other suggestions?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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