Hello.
Is there a way detect user activity (mouse movement, key press) outside of mozilla application? by "outside of mozilla application" I mean when browser is minimized or not in focus.
I'm looking for a way detect when user is idle (away from computer) for NN period of time.
Also, is there a way detect when computer is about to go to sleep or if it just woken up, or when screen saver activated, these sort of things?
Thank you.
P.S.
Need it for non web-api extension
Detect user activity?
- Vano
- Posts: 403
- Joined: December 26th, 2007, 8:21 pm
- Vano
- Posts: 403
- Joined: December 26th, 2007, 8:21 pm
Re: Detect user activity?
For the idle part I can use nsIIdleService
For sleep/wake on some systems can be used nsIObserverService observer to register sleep/wake notification.
For sleep/wake on some systems can be used nsIObserverService observer to register sleep/wake notification.
- Vano
- Posts: 403
- Joined: December 26th, 2007, 8:21 pm
Re: Detect user activity?
Is there any notifications available when user locks workstation?