Difference of Shutdown and Power Down? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
nutnutwin
Posts: 76
Joined: 28 Aug 2019, 07:25

Difference of Shutdown and Power Down?

13 Sep 2021, 19:35

I have read document here
https://www.autohotkey.com/docs/commands/Shutdown.htm

and tried using
> Shutdown, 1
shutdown
> Shutdown, 8
Power Down
and they seems to do the same on Windows 10(Pro, 20H2). I wonder what is the difference
--- ✄ -----------------------
I remember in Windows 95/98, there was a "shutodwn screen", and after that I had to manually "turn off power"
I wonder if this is what shutdown flag means...

Thank you for your time.
User avatar
mikeyww
Posts: 27140
Joined: 09 Sep 2014, 18:38

Re: Difference of Shutdown and Power Down?

13 Sep 2021, 20:09

My recollection is that 1 on some systems would sleep the system, so I recommend using 8 to shut down.
The "Power down" value (8) shuts down the system and turns off the power.
nutnutwin
Posts: 76
Joined: 28 Aug 2019, 07:25

Re: Difference of Shutdown and Power Down?

14 Sep 2021, 00:56

mikeyww wrote:
13 Sep 2021, 20:09
My recollection is that 1 on some systems would sleep the system, so I recommend using 8 to shut down.
The "Power down" value (8) shuts down the system and turns off the power.
Thank you for your advice.
I was about to go 1(Shutdown)+4(Force)+8(Power Down) in case it does not shutdown...
I will go with 8
User avatar
mikeyww
Posts: 27140
Joined: 09 Sep 2014, 18:38

Re: Difference of Shutdown and Power Down?  Topic is solved

14 Sep 2021, 05:06

The documentation is vague and somewhat confusing on this command, probably because these things might work slightly differently on different systems. Although it appears that 8 or 9 should both work, I think I would stick with 8 if it works.

Forcing a scripted shutdown (option 4) is probably not a great idea, because it might end up causing a loss of data if you have unsaved files.
nutnutwin
Posts: 76
Joined: 28 Aug 2019, 07:25

Re: Difference of Shutdown and Power Down?

28 Sep 2021, 19:24

mikeyww wrote:
14 Sep 2021, 05:06
The documentation is vague and somewhat confusing on this command, probably because these things might work slightly differently on different systems. Although it appears that 8 or 9 should both work, I think I would stick with 8 if it works.

Forcing a scripted shutdown (option 4) is probably not a great idea, because it might end up causing a loss of data if you have unsaved files.
Hi, sorry for the late reply.
Yes, forcing is not good in this situation.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: AlFlo, Bing [Bot] and 168 guests