How to get focus of the debugged window?

Hello,
I am debugging an Win API application (game) in visual studio C ++ 2013.
I need to pass commands from the C-code and see what they do on the screen of the application being debugged.
The problem is. that characters that control characters are loaded into a special buffer, from which they are extracted by WM_TIMER and activate the movement of the game characters. When debugging in visual studio I see that symbols are loaded, but their extraction from the buffer by WM_TIMER command does not occur because application is not an active window. I need to get app focus during debugging to make it being processed by WM_TIMER event and the movement of the characters. How to do it? Who knows?
Topic archived. No new replies allowed.