Put Computer to Sleep (script step reference)

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) ]

Options

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

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:

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

Compatibility

FileMaker Pro 16

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 stepsScript step badge

Restart Computer
Shutdown Computer

Related functionFunction badge

Actr_Sleep

Related topics

Activator Plug-in online help (overview)


Online Help Page for Activator Plug-in for 12 to 16 –> Put Computer to Sleep (actrp7617) 2017-0831 12:44:59