Jump to content

Putting windows to sleep


simonc8
 Share

Recommended Posts

I have a script which currently shutsdown the computer when the process finishes. How can I add the option to send Windows to sleep when the process finishes? The only reference I can find in the documentation for Sleep is the command to pause Autoit.

 

Grateful for assistance.

Link to comment
Share on other sites

1 hour ago, simonc8 said:

The only reference I can find in the documentation for Sleep is the command to pause Autoit.

You really need to work on your searching skills.  :rolleyes:  You must have blinked when you scrolled past the Shutdown function in the help file. ;)

Shutdown($SD_STANDBY)

Standby = Puts the workstation to sleep

Edited by TheXman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...