I PUT THIS IN Global Actions .. Window /Tab - Close
local iHandle = acGetOwnerWindowByPoint(gsx, gsy)
acActivateWindow(iHandle,0,0)
exnm=acGetExecutableName(iHandle,0,0)
if (
(exnm=="TOTALCMD64.EXE")
or(exnm=="TOTALCMD.EXE")
or(exnm=="explorer.exe")--windows explorer can be close with ctrl + w
or(exnm=="iexplore.exe") -- internet explorer have tabs
or(exnm=="firefox.exe")
or(exnm=="waterfox.exe") -- the magic x64 version of firefox , da best browser on the world
or(exnm=="mshta.exe")--for .hta scripts for custom dhtml ,if you have
or(exnm=="chrome.exe")
or(exnm=="opera.exe")
or(exnm=="sublime_text.exe")--text editors
or(exnm=="editplus.exe")
-- you are free to add anything eg:or(exnm=="anything.exe")
-- if you don't know the name of executable whitch work with ctrl+w
-- drag a stroke line over : "\" and look in the right bottom corner
-- and read the executable name form the baloon
)then
acSendKeys("^w")
else-- anythingelse without tabs ...
acSendKeys("%{F_4}")-- close anything else = alt + f4
end
--acMessageBox(exnm,"",nil)
acDisplayBalloonTip( exnm,"Done for:", 1)
Constantin