Script for Hybernated Shutdown

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Shank

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
!v::
shutdown 1
return

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

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)
Shank

Re: Script for Hybernated Shutdown

21 May 2018, 16:16

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, filipemb, Rohwedder and 307 guests