Joined: 12 Dec 2012 Posts: 340 Location: Somewhere....
Posted: Fri Aug 09, 2013 4:54 pm Post subject:
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.
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?
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