I tried the script below, which worked properly to close all "installed" apps opened in the Windows taskbar.
However, the command doesn't close any portable apps which were opened/running.
How to improve the script below in order it also can close portable apps opened/running in the Taskbar?
Thanks for assistance!
Cadu
Code: Select all
; From: https://github.com/matthewmorrone/autohotkey/blob/master/dev/close-all-windows.ahk
WinGet, id, list, , , Program Manager
Loop, %id%
{
StringTrimRight, this_id, id%a_index%, 0
WinGetTitle, this_title, ahk_id %this_id%
winclose,%this_title%
}
Return