Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok, here's the general idea of what I want to do.

After a certain time, I would like the computer to nag me to go to sleep. Maybe every five minutes or so. But I don't want the messages to pop up if the screen is locked, because I leave it like that all night.

Ideally I would like to be able to do more things like shut down running instances the web browser, or lock my user session if I ignore the notices for too long. But I'm happy with just popup messages if that's all I can do.

So, how much of this is possible and where do I start? I'm not too well versed with task scheduler, and I'm assuming I'll use that to at least start whatever script I have to put together.

share|improve this question
I'm fairly sure checking whether the screen is locked won't be possible without a bit of code at API level. Get your programming boots on :) – Ciaran Feb 1 '11 at 0:00
That's fine with me but I do mostly web stuff so I really need an idea of where to start. Php is obviously not a good choice. Maybe python? – Syntax Error Feb 6 '11 at 7:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.