Script for Hybernated Shutdown Topic is solved

Get help with using AutoHotkey and its commands and hotkeys

Script for Hybernated Shutdown

20 May 2018, 17:46

I want to set a script for hybernated shutdown in windows 10. Hybernated shutdown or hybrid shutdown enables fast startup.

I tried the script
shutdown 1

but it is making complete shutdown. What is required script for hybernated shutdown.
User avatar
Posts: 1028
Joined: 15 Nov 2014, 21:31
GitHub: Flipeador
Location: Argentina

Re: Script for Hybernated Shutdown

20 May 2018, 21:20

Code: Select all

DllCall("Ntdll.dll\RtlAdjustPrivilege", "UInt", 19, "UChar", TRUE, "UChar", FALSE, "IntP", t)
DllCall("User32.dll\ExitWindowsEx", "UInt", 0x00400000|0x00000001|0x00000010, "UInt", 1)
? (Try running as Administrator)
Windws 1♂ Pro 64-Bits I make scripts for AHKv2 (my v2 compiler) & WIN_7+ Spanish Argentina
(If any of my code written for v2 has stopped working, send me a private message. I appreciate that you correct my English.)

Re: Script for Hybernated Shutdown  Topic is solved

21 May 2018, 16:16

Thanks Flipeador, this script is working correctly even without administrative privileges.

Return to “Ask For Help”

Who is online

Users browsing this forum: alllala, blue83, Google [Bot], MannyKSoSo and 45 guests