Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
SystemInfo.IdleTime
Returns the global idle time in seconds.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| SystemInfo | 3.3 | Yes | Yes | No | No | No |
MBS( "SystemInfo.IdleTime" ) More
(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 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
Blog Entries
Created 18th August 2014, last changed 19th March 2017
SystemInfo.HostName - SystemInfo.Is64bitWindows
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins