System.Sleep
------------

Asks computer to go to sleep (standby).

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [System](component_System.md) | [3.1](newinversion31.md) | ✅ 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

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

### Blog Entries

- [MBS Filemaker Plugin, version 3.2pr4](https://www.mbsplugins.de/archive/2013-03-18/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[System.Shutdown](SystemShutdown.md) - [SystemInfo.ADSystemInfo](SystemInfoADSystemInfo.md)

[HTML Version](SystemSleep.shtml)