mIRC Home    About    Download    Register    News    Help

Print Thread
Request: /comclose wildcard support. #263623
29/08/18 09:20 AM
29/08/18 09:20 AM
Joined: Feb 2003
Posts: 2,607
Raccoon Offline OP
Hoopy frood
Raccoon  Offline OP
Hoopy frood

Joined: Feb 2003
Posts: 2,607
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."


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Request: /comclose wildcard support. [Re: Raccoon] #263628
29/08/18 07:16 PM
29/08/18 07:16 PM
Joined: Apr 2010
Posts: 910
USA
F
FroggieDaFrog Offline
Hoopy frood
FroggieDaFrog  Offline
Hoopy frood
F

Joined: Apr 2010
Posts: 910
USA
I've asked for this before. The issue is 'ordering'. If a 'parent' com closes without closing its children first unexpected behaviors might occur.


I am SReject
My Stuff
Re: Request: /comclose wildcard support. [Re: FroggieDaFrog] #263631
30/08/18 04:05 AM
30/08/18 04:05 AM
Joined: Feb 2003
Posts: 2,607
Raccoon Offline OP
Hoopy frood
Raccoon  Offline OP
Hoopy frood

Joined: Feb 2003
Posts: 2,607
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!