Try using this script code:
Code
alias close_wins {
  var %i $window(0) | while (%i) {
    if ($window(%i).cid == $activecid) { window -c $window(%i) }
    dec %i
  }
}

Enter the command in the active window: /close_wins


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples