Platforms to show: All Mac Windows Linux Cross-Platform

MacGlobalIdleTimeMBS as UInt64
global method, System, MBS REALbasic MacOSX Plugin (MacOSX), Console safe, Plugin version: 10.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Queries the current global idle time on a Mac.
Example:
MsgBox Format(MacGlobalIdleTimeMBS/1000000000.0,"0.0")+" seconds idle"
Notes:
The return value is the number of nanoseconds the user did not use mouse or keyboard.
Returns -1 on any error.

Some examples using this method:

The items on this page are in the following plugins: MBS REALbasic MacOSX Plugin.




Links
MBS REALbasic Plugins - Nachhilfe in Mendig