-
Notifications
You must be signed in to change notification settings - Fork 337
Shutdown and CancelShutdown
aryan edited this page Jun 11, 2021
·
7 revisions
Function: shutdown(time: int = 20) -> NoReturn
This function is used to shutdown the host machine after a given amount of time. Please note that for Windows Distributions the time should be given as SECONDS and for MacOS and Linux based distributions the time should be given as MINUTES.
Example: pywhatkit.shutdown(5)
Function: cancel_shutdown() -> NoReturn
This function is used to cancel the scheduled shutdown for Windows, MacOS and Linux based distributions.
Example: pywhatkit.cancel_shutdown()
PyWhatKit Version 5.2