[Project_owners] Find time duration of Firefox-inactivity
Eric H. Jung
eric.jung at yahoo.com
Sun Aug 10 09:40:38 PDT 2008
You could addEventListeners for mouseMove and keypress events, resetting a timer in the event handler for those events. Perform the shutdown/hibernate in the timer callback. If the timer ever expires, the shutdown/hibernate will occur. However, why bother with this at all? Every modern OS already has exactly this feature built-in.
----- Original Message ----
From: InBasic <inb.cor at gmail.com>
To: Mozdev Project Owners List <project_owners at mozdev.org>
Sent: Sunday, August 10, 2008 3:16:25 AM
Subject: [Project_owners] Find time duration of Firefox-inactivity
I am interested if any body can suggest a way to find out how much time Firefox is inactive from last use ? (maybe track mouse & keyboard move,..)
P.S: I want to add feature to "Auto shutdown" extension to shutdown,hibernate,.. PC after specific time of inactivity of Firefox (suggested by a user)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Project_owners