Any idea how to get this done? i've tried some winapi functions, but they don't seem to work.
I need it to interact with npcs and other things, which only work if the game window is not minimized. but minimizing reduces the cpu load a lot, so i'd prefer that.