Put Computer to Sleep |
Put the computer into sleep mode.
Syntax
Put Computer to Sleep [ Select ; Result (error) ]
Options
| Select entire contents | replaces the entire contents of a field with the result. If not checked the result replaces the currently selected portion of the field |
| Result (error) | an error code |
Switches
Returned Result
Data type returned
Error code
Result
The returned result is an error code. If successful it returns 0. An error always starts with 2 dollars, followed by the error code. You should always check for errors.
Returned error codes can be:
| 0 | no error | |
| $$-50 | paramErr | check if your parameters are correct |
| $$-4131 | this computer does not have suitable hardware to do this |
Other errors may be returned.
Originated in
Activator Plug-in 4.5
Compatibility
FileMaker Pro 18 to 2025
Considerations
– This script step only works on computers that support sleep.
– The script step returns before the computer has gone into sleep. Use a Pause/Resume step with 20 seconds pause, to be sure the next step is executed after the sleep.
Example
Put Computer to Sleep [ Select ; Result ]
Put the computer to sleep. It will only wake up by the user waking it.
Related script steps
| Restart Computer |
| Shutdown Computer |
Related function
| Actr_Sleep |
Related topics
Activator Plug-in online help (overview)