Another thread with people crying for solution:
https://social.technet.microsoft.com/Forums/windows/en-US/8a9b5aa7-fe33-4e6d-b39b-8ac80a21fdc2/disable-monitor-off-detection-how?forum=w7itprogeneral
I am having a problem on my Win7 machine that I never had on my XP machine.i have now six monitors as commented in one of our posts.
I have 4 monitors. Overnight the monitors (not the computer) go to sleep.
When they wake up, some of the windows that were open on the desktop jump/move around to different monitors and resize.
It's really quite annoying.
Windows 7, Nvidia modern graphics cards with up to date drivers.
Any ideas how I might stop this from happening? Short of turning off the monitor sleep power options?

1. Code that detects when monitors are about to be put to sleep and saves last state (position, size maximization, etc.) of current windows (or alternatively simply saves them regularly).
2. Code that detects when monitors come out of sleep, and restores these positions/sizes/etc. after they FULLY wake up.
Original address: https://www.donationcoder.com/forum/index.php?topic=37307.0