I'm looking for existing software or direction for how I should write my own.<p>What I want is a simple timer that would allow me, say, a two hour session of Starcraft 2. It would alert me when 2 minutes are left so I could save my game and then it would quit and disable the application for 24 hours.<p>All the software (mostly parental) I've found logs you off the computer or shuts it down. I'm looking for something that is just application specific.<p>If it doesn't exist then I want to build it. My experience is mainly in ruby and a little bit of java but I'm willing to learn something new if it would make it quicker/easier.
I'm sorry to say it, but the only way to cure your sickness is to suck up your time and just get 100% of the SC2 achievements. Once you do that the temptation will go away.<p>Happy hunting!
SafeEyes might work for you. I think they have both application-specific controls and some cron limits. It's aimed at parents, but might work for what you're going for.
Maybe <a href="http://www.rescuetime.com/" rel="nofollow">http://www.rescuetime.com/</a> could help with blocking distracting sites and more. If it doesn't have what you're looking for, shoot them an email, who knows they might listen to ya (besides, they're a YC company - show them your HN love and that might get even more attention :)
Thanks to @robdimarco.
Found something that works for MacOSX. 'SelfControl' <a href="http://visitsteve.com/work/selfcontrol/" rel="nofollow">http://visitsteve.com/work/selfcontrol/</a>
It allows you to choose specific domains to block. For the Starcraft example, blocking battle.net would be somewhat effective. Source code is on GitHub too. Now I just need something for Windows 7.