• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I get system idle time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Prev by Date: Possibly OT: Mouse Acceleration
  • Next by Date: [OT] Re: optimizing compilers
  • Previous by thread: Re: Possibly OT: Mouse Acceleration
  • Next by thread: Re: InputServer/Manager
  • Index(es):
    • Date
    • Thread