[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.

Eric



----- 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


Hi there,

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)

Regards,
InBasic



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20080810/b0a6a5bf/attachment.html>


More information about the Project_owners mailing list