[Project_owners] Find time duration of Firefox-inactivity

Neil Deakin enndeakin at gmail.com
Sun Aug 10 14:07:58 PDT 2008


InBasic wrote:
> 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)
>

You can do this with nsIIdleService, but I don't think there's a way to 
shutdown or ask for a shutdown of the system. You could shut down 
Firefox though.




More information about the Project_owners mailing list