Inactive shutdown service
- From: Kezepema <kezepema@xxxxxxxxx>
- Date: Sun, 24 Apr 2005 15:57:58 +0200
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 .
- Follow-Ups:
- Re: Inactive shutdown service
- From: Maarten Wiltink
- Re: Inactive shutdown service
- Prev by Date: Re: Faster way of making long string?
- Next by Date: Re: Faster way of making long string?
- Previous by thread: Faster way of making long string?
- Next by thread: Re: Inactive shutdown service
- Index(es):
Relevant Pages
|