Shortcut to close all programs properly, then shutdown?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
milkygirl90
Posts: 565
Joined: 10 Nov 2020, 21:22

Shortcut to close all programs properly, then shutdown?

16 May 2021, 09:14

Is there a way to auto-close all programs properly (assume yes for all pop-up dialogs), then shutdown in a ahk script?
User avatar
mikeyww
Posts: 27110
Joined: 09 Sep 2014, 18:38

Re: Shortcut to close all programs properly, then shutdown?

16 May 2021, 09:16

You can use WinGet to loop through windows and WinClose them, followed by Shutdown.

Here is an example of a script that uses WinGet.

https://www.autohotkey.com/boards/viewtopic.php?p=367659#p367659

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], haomingchen1998, mihai369, ShatterCoder and 154 guests