mIRC Homepage
Posted By: TECO Close status window - 11/10/18 05:10 PM
Hi guys.

I needed your help. If I have multiple status windows and if I want to close only one status window, is there any command I can type in the status editbox I want to close?

I know there is the command: /close -t (but this command closes me all windows and not individually).

Thank you!
Posted By: maroon Re: Close status window - 11/10/18 05:41 PM
I opened a new status window: /server -n
and this typed in that window closed it:
Code:
//window -c "status window"


You can also use the trick where @window_id_number is an alias to refer to the actual window, in many cases (You can even use @number to echo to the other status window). This closes the last status window:

Code:
//scon $scon(0) | window -c @ $+ $window(status window).wid


I haven't tested regarding the prompt about "hey you're connected here", but if so, you can do some housecleaning before trying to close it.

Note that the window-id for the Nth status window will be slightly different than $scon(N)
Posted By: TECO Re: Close status window - 11/10/18 07:11 PM
Hi maroon,

Tell me something. Is it possible to return the number of open status windows through some command?
Posted By: westor Re: Close status window - 11/10/18 07:13 PM
$scon(0)

//echo -a Opened: $scon(0)

mIRC (outdated) help file: /help $scon
Wikichip: https://wikichip.org/mirc/identifiers/$scon
Posted By: TECO Re: Close status window - 11/10/18 09:05 PM
Thank you westor wink
© mIRC Discussion Forums