How do I suspend a certain process when display is turned off/on?

view story

http://superuser.com – There is a certain process that goes nuts when the computer thinks that I'm away (5 minutes of no user input and the screen goes dark) and the only known way to prevent it from causing trouble (apart from not going away) is either killing the process or suspending it. I still like what the process does. Is there a way to automatically suspend a process when Windows turns off the display and re-enable it when it turns on? Note: the process in question doesn't function properly while the OS is in "away" mode, so here I'm trying to work around this little problem. UPD: Please don't try to find (HowTos)