mIRC Homepage
Posted By: Raccoon Request: /comclose wildcard support. - 29/08/18 09:20 AM
Request wildcard /comclose. Choose your own favorite behavior -- /sockclose, /hfree, /timers, etc.

ie, /comclose -w WshShell.*
Closes all com objects with names beginning with "WshShell."
I've asked for this before. The issue is 'ordering'. If a 'parent' com closes without closing its children first unexpected behaviors might occur.
Posted By: Raccoon Re: Request: /comclose wildcard support. - 30/08/18 04:05 AM
Ah. So it's better to encourage ordered cleanup. Except, I can see this as being a difficult or tedious task where a lot of child dispatch names are dynamically created. So this would be a lot easier for mIRC to manage for us.

Solution: mIRC keeps track of each com's creation time (ordering). The use of "/comclose -w *" would close the newest coms first and the oldest ones last. No unexpected behaviors. smile
© mIRC Discussion Forums