Re: Inactive shutdown service



"Kezepema" <kezepema@xxxxxxxxx> wrote in message
news:nuNae.19794$kd1.1366@xxxxxxxxxxxxxxx

> I warned them so many times, but children in my class-group often forget
> to shutdown their pc's.
> To prevent high energy costs, I intend to write a service or program in
> Delphi, that will account for inactivity.

Are you the last to leave the classroom? Turn off the main switch when
you go out.

Have you considered the wear and tear on the computers from turning them
on and off seventeen times a day?


> I think the best way to notice inactivity is to react on mouse actions
> or keyboard input in cooperation with the Timer component.

I think the best way to notice inactivity is to defer the noticing to
Windows, which is equipped for it.


> So I want to set the inactivity time to 15 minutes.
> When the program receives no mouse or keyboard events in that time
> range, the system should shutdown automatically.

Start, Settings, Control Panel, Power Options, Power Schemes, System
standby, "After 15 minutes". Is standby good enough for you? (If it's
not, perhaps next time your institution buys PCs, it should make standby
power usage a consideration.)


[...]
> Thanks very much for your cooperation in advance.

Your intentions do not warrant cooperation. They warrant education.
The OS manages the hardware for you. Let it.

Groetjes,
Maarten Wiltink


.