Script: Close all apps including the portable ones.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
cadudesun
Posts: 129
Joined: 04 Jun 2016, 10:26

Script: Close all apps including the portable ones.

18 Nov 2018, 17:18

Hi,
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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333, mikeyww and 326 guests