http://appsapps.info/idlestart.php After a big of googling I found this program called idlestart. It looks like free ware and to be honest you can probably make a simpler one with a little bit of coding/scripts. I think this may fit your needs.
(I haven't tried it out or testing it but my google search terms were "run program on idle [insert OS here]"