I have a Windows Service that runs a CPU-intensive job. I have it installed on several computers. The problem is, when it runs the machine is wicked slow. So I'd like to have the service only run during periods of inactivity....just like a screensaver.
I know I can use low-level keyboard/mouse hooks like in http://www.codeproject.com/KB/system/globalsystemhook.aspx. I'm wondering though if Windows has a more sophisticated API that is specifically for periods of user inactivity.
I know there are other apps that only run when user is not using keyboard/mouse and/or during periods of low CPU usage. Anybody know of an easy way to do it?
Thanks!