SystemInfo.IdleTime
-------------------

Returns the global idle time in seconds.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SystemInfo](component_SystemInfo.md) | [3.3](newinversion33.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "SystemInfo.IdleTime" ) (old name: SystemInfo.MacGlobalIdleTime)

### Parameters

none

### Result

Returns value or error.

### Description

Returns the global idle time in seconds.  
This time comes from HID system and informs you how long no mouse or keyboard has been used.  
You can check this regularly in a timer script and do things like an auto logout.  
  
If you use [EventMonitor.Install](EventMonitorInstall.md) function, this function may be better with remote control.  
With remote controlled PC, the local mouse and keyboard devices are not used, so the HID idle time is high. But with event monitor we see events from user and can reset idle counter.  
### Examples

Shows idle time:

 Pause/Resume Script \[Duration (seconds): 2\]  
Show Custom Dialog \["Info"; MBS ( "SystemInfo.IdleTime" )\]  
### See also

- [EventMonitor.Install](EventMonitorInstall.md)
- [SystemInfo.Time](SystemInfoTime.md)

### Example Databases

- [Utility functions/RunScript](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/RunScript.shtml#7ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 3.3pr4](https://www.mbsplugins.de/archive/2013-06-12/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.3pr3](https://www.mbsplugins.de/archive/2013-06-02/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 28th January 2023

  
[SystemInfo.HostName](SystemInfoHostName.md) - [SystemInfo.Is64bitWindows](SystemInfoIs64bitWindows.md)

[HTML Version](SystemInfoIdleTime.shtml)