power.hibernate()function


power.hibernate() suspends the computer in hibernation mode.

Notes

  • Hibernation mode must have been activated in the Windows settings for this function to work.

Return value

This function returns true on success or false otherwise.

Example

--! luart-extensions import power print("Computer will hibernate in 5sec !") sleep(5000) power.hibernate()