Jump to content
simonc8

Putting windows to sleep

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.

Share this post


Link to post
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

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...