Is it possible to programmatically prevent a game from pausing when its window loses focus?

Posted by user836045 on Game Development See other posts from Game Development or by user836045
Published on 2012-04-10T15:20:48Z Indexed on 2012/04/10 17:47 UTC
Read the original article Hit count: 214

Filed under:
|
|

I'm playing Skyrim in windowed mode and I am trying to create a bot for this game for personal use. I would like to have the bot play the game in the background, while I do other things, the only problem is that the game window pauses when it loses focus. Is there a way to make the Skyrim process think that it still has the focus, so it continues to run while I do something else on another window? I'm not a windows programming expert but would this be possible if I could somehow intercept the message that says unfocused or minimized to the process, and thus let the process think its still focused? I think Skyrim uses directx, so is it possible to come up with a solution from that end?

© Game Development or respective owner

Related posts about c++

Related posts about directx