Put Computer to Sleep (script step reference)

By September 1, 2017 April 23rd, 2019 Online Help, Troi Activator Plug-in
Activator Plug-in > Script steps reference > Put Computer to Sleep
Activator Plug-in for FileMaker Pro

Put Computer to Sleep

Put the computer into sleep mode.

SyntaxScript step badge

Put Computer to Sleep [ Select ; Result (error) ]


Select entire contentsreplaces 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


Returned Result

Data type returned

Error code


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:

0no error
$$-50parameter errorcheck if your parameters are correct
$$-4131this computer does not have suitable hardware to do this

Other errors may be returned.

Originated in

Activator Plug-in 4.5


FileMaker Pro 16 to 17


– 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.


Put Computer to Sleep [ Select ; Result ]

Put the computer to sleep. It will only wake up by the user waking it.

Related script stepsScript step badge

Restart Computer
Shutdown Computer

Related functionFunction badge


Related topics

Activator Plug-in online help (overview)

Online Help Page for Activator Plug-in for 14 to 17 –> Put Computer to Sleep (actrp7617) 2019-0423 16:20:43