Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
This function is free to use.
Created 18th August 2014, last changed 21st May 2018