Alias to close all miniwindows currently open

Posted by Nick Gammon on Thu 20 Aug 2009 06:10 AM — 1 posts, 6,835 views.

Australia Forum Administrator #0
The alias below can be handy if you have a whole lot of miniwindows on the screen, and want to free up the space they are taking. It simply finds the names of all of them and turns off the "show" flag.

You might want to use this if you removed a plugin, but the plugin left a window hanging around on the screen.


<aliases>
  <alias
   match="close miniwindows"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>
do
  local windows = WindowList()

  if windows then
    for _, v in ipairs (windows) do 
      WindowShow (v, false) 
    end
  end -- if any
end -- do
</send>
  </alias>
</aliases>


Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.