I wrote it specifically for eMule and the configuration file is set up for this, but you could use it to run any particular program. All you need to do is to edit the file "thedevilswork.conf" and edit the following settings:
runOnStartup.program=c:\progra~1\emule\emule.exe runOnStartup.params=limits=2,6 runOnStartup.workingDir=c:\progra~1\emule runOnIdle.program=c:\progra~1\emule\emule.exe runOnIdle.params=limits=0,0 runOnIdle.workingDir=c:\progra~1\emule runOnActive.program=c:\progra~1\emule\emule.exe runOnActive.params=limits=2,6 runOnActive.workingDir=c:\progra~1\emule runOnExit.program= runOnExit.params= runOnExit.workingDir= idleTriggerTime=60000 checkEvery=10000"runOnStartup" is optional and the utility will run this when it starts. "runOnIdle" runs when your PC has been idle for the amount of time specified by "idleTriggerTime" (milliseconds). "runOnActive" is run when your PC becomes active again, i.e. when you move the mouse or use the keyboard. "runOnExit" is optional and runs when you close the program. The setting "checkEvery" specifies how often the program checks the idle/non-idle state, you probably don't want to change this. Make sure that idleTriggerTime is higher than checkEvery.
Full Delphi source code is provided.
Trivia: The name of the program comes from the old saying "The Devil makes work for idle hands".
If you have any questions or want to report a bug please drop me a line at