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 <[EMAIL PROTECTED]> To: Mozdev Project Owners List <[email protected]> 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
_______________________________________________ Project_owners mailing list [email protected] https://www.mozdev.org/mailman/listinfo/project_owners
