Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

closed as off topic by Tetrad Apr 11 '12 at 21:10

Questions on Game Development Stack Exchange are expected to relate to game development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Will I help you violate the EULA by writing a bot? No. If you want the bot to play the game for you, then perhaps you should consider if the game actually interests you at all. – DeadMG Apr 10 '12 at 15:27
@DeadMG - The game doesn't interest me whatsoever, I'm creating a bot for another purpose. And is there no way to do it without violating the EULA? – user836045 Apr 10 '12 at 15:29
I'm a bit confused... why is botting even relevant for a single player game? An MMORPG has a reasonable basis to deny botting, but I do not even understand the rationale behind preventing people from programming a bot for a single player game. – Myrddin Emrys Apr 10 '12 at 17:09
It's not our job to police EULAs. If you don't want to answer, that's fine, but the question seems reasonable to me. – Kylotan Apr 10 '12 at 21:08
An interesting question, I don't know the answer, but I'm curious as to what your intentions are :). – dcousens Apr 10 '12 at 21:46

Well the Eula doesn't really have any actual legal basis as long as you're not hurting anyone but yourself. And it is possible to do what you want, I don't know the specifics but basically you intercept the windows messages and have it ignore any kind of non focusing messages or just force it into thinking it's focused.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.