Shortcut to close all programs properly, then shutdown?
- milkygirl90
- Posts: 565
- Joined: 10 Nov 2020, 21:22
Shortcut to close all programs properly, then shutdown?
Is there a way to auto-close all programs properly (assume yes for all pop-up dialogs), then shutdown in a ahk script?
Re: Shortcut to close all programs properly, then shutdown?
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
Here is an example of a script that uses WinGet.
https://www.autohotkey.com/boards/viewtopic.php?p=367659#p367659
Who is online
Users browsing this forum: Bing [Bot], haomingchen1998, mihai369, ShatterCoder and 154 guests