Re: How can I get system idle time?
Re: How can I get system idle time?
- Subject: Re: How can I get system idle time?
- From: Ben Hines <email@hidden>
- Date: Fri, 1 Feb 2002 08:36:32 -0800
At 11:22 PM -0700 1/27/02, Donald S. Hall wrote:
The System obviously keeps track of how long it has been since the last
keyboard or mouse activity, and if the time specified in the Energy Saver
Preference Panel is exceeded, it starts the screen saver or powers down the
disk, etc. Is there any way I can get at this information (i.e. the time
since last keyboard or mouse event)?
IOKit - match against IOHIDSystem - look at the HIDIdleTime key.
(see IoKit docs for how to do this)
-B
--
http://homepage.mac.com/bhines/