Script for Hybernated Shutdown

Get help with using AutoHotkey 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: 962
Joined: 15 Nov 2014, 21:31
GitHub: Flipeador
Location: Argentina
Contact:

Re: Script for Hybernated Shutdown

20 May 2018, 21:20

Code: [Select all] [Download] (Untitled.ahk)GeSHi © Codebox Plus

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 SublimeText 3 & AHKv2 My GDI+ Library
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”

Who is online

Users browsing this forum: HydraHexellion, takayo97 and 42 guests