simonc8 Posted October 24, 2020 Posted October 24, 2020 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.
TheXman Posted October 24, 2020 Posted October 24, 2020 (edited) 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. 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 October 24, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
simonc8 Posted October 24, 2020 Author Posted October 24, 2020 Thanks. I hadn't made the connection between Autoit's use of Standby and Microsoft's use of Sleep.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now