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 


[C++] Sending Input to another window

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Black Magic
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2235

PostPosted: Sun Apr 21, 2013 3:20 am    Post subject: [C++] Sending Input to another window Reply with quote

Is it possible to send keyboard input into a game from only a console application? I've tried SendInput() and PostMessage() for the past hours and couldn't make what I had in mind. Would I have to Inject a dll in stead of a win32 console app?
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 157

Joined: 25 Jan 2006
Posts: 8102
Location: 127.0.0.1

PostPosted: Sun Apr 21, 2013 3:43 am    Post subject: Reply with quote

Depends on how the game handles key input. If they do not process window messages for the input then it most likely wont work using SendInput / PostMessage.

Also, if they have any internal key hooks, they can determine if the key press that was sent is fake or not, which could be used to block your sent presses.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
m0us
Newbie cheater
Reputation: 0

Joined: 25 Apr 2013
Posts: 11

PostPosted: Thu Apr 25, 2013 12:11 pm    Post subject: Reply with quote

you can AttachThreadInput, then try what you did
Back to top
View user's profile Send private message
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