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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

System.Sleep

Asks computer to go to sleep (standby).

Component Version macOS Windows Linux Server iOS SDK
System 3.1 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "System.Sleep" )

Parameters

none

Result

Returns OK or error number.

Description

Asks computer to go to sleep (standby).
It is possible that user or other application stops the sleep process.
Operation will run asynchronously. The function returns immediately and sleep starts a second later.

Example Databases

Blog Entries

Created 18th August 2014, last changed 21st May 2018


System.Shutdown - SystemInfo.ADSystemInfo

Feedback: Report problem or ask question.