Inactive shutdown service



Hi,

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.


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

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.


Regarding to this I have two questions:
1.
Suppose a user was working in MsWord, writing a report or whatever. I know when the system is closing it will wait endlessly for input on the message "Do you want to save the changes?"
Of course I want to override this dialog and force shutdown anyhow.
How can I do this?
2.
What should I do to have the service or application responding on mouse or key events outside my application.
So, when user is working with Word or whatever, my program still has to receive events.


Thanks very much for your cooperation in advance.

Kind regards,
Kees Epema
.



Relevant Pages

  • Re: Install Patch at shutdown
    ... The same Desktop Authority's inactivity ... programs when shutdown even will happen on client computer. ... can create a list which software you want to install for your students ... and it will be automatically installed on their machines when they'll ...
    (microsoft.public.windowsxp.security_admin)
  • Re: forced log off
    ... Karen Jayne Panzke wrote: ... period of inactivity? ... Once you haven't used the computer for awhile, ... shutdown. ...
    (microsoft.public.windows.vista.general)
  • Re: Auto shutdown
    ... On Tuesday 11 May 2004 3:58 pm, Adriano Holanda wrote: ... > a period with keyboard or mouse inactivity, i.e., ... a shutdown command is sent to the system. ...
    (Fedora)
  • Freeze after inactivity
    ... Windows XP Pro, after about ten minutes of inactivity, my ... computer freezes. ... The mouse icon will move around but ... cannot do anything except hard button shutdown and ...
    (microsoft.public.windowsxp.newusers)
  • Re: Auto Shutdown when on Login screen
    ... At the command prompt enter shutdown /? ... or such of inactivity. ... Any suggestions on how to make my computer shutdown, anytime after 10 minutes of no usage when on the logon screen? ...
    (microsoft.public.windowsxp.general)