View Single Post
Old 4th January 2016, 20:08   #741  |  Link
slavanap
Registered User
 
slavanap's Avatar
 
Join Date: May 2011
Location: Moscow, Russia
Posts: 124
Quote:
Originally Posted by r0lZ View Post
Hum, I have never encountered that problem, and honestly I don't think I can do something to avoid it.

There are stupid programs available on the net to simulate a mouse move of key press regularly while a certain window is open, or a certain program is running. Perhaps you can use that kind of trick, but I don't think it's something that should be hardcoded in BD3D2MK3D. After all, it's a Windows bug!

Perhaps there is also a power management option to NOT go into sleep mode when the notebook is connected to the AC power?
There's nice WinAPI function intended for your case:
https://msdn.microsoft.com/ru-ru/lib...(v=vs.85).aspx
Just call it like this:
SetThreadExecutionState(ES_SYSTEM_REQUIRED|ES_CONTINUOUS);
P.S. Call it in your main program thread of course. Or I can write a simple program that monitors a state of other executable and calls this function.
slavanap is offline