Vista - perform scheduled actions only if screen is not locked

1

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.

Syntax Error

Posted 2011-01-31T23:12:51.623

Reputation: 111

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 – 2011-02-01T00:00:11.253

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 – 2011-02-06T07:20:55.810

No answers