mIRC Home    About    Download    Register    News    Help

Print Thread
#263922 11/10/18 05:10 PM
Joined: Jul 2014
Posts: 308
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
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!


TECO
irc.PTirc.org (Co-Admin)
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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)

Joined: Jul 2014
Posts: 308
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
Hi maroon,

Tell me something. Is it possible to return the number of open status windows through some command?


TECO
irc.PTirc.org (Co-Admin)
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
$scon(0)

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

mIRC (outdated) help file: /help $scon
Wikichip: https://wikichip.org/mirc/identifiers/$scon

Last edited by westor; 11/10/18 07:16 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jul 2014
Posts: 308
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
Thank you westor wink


TECO
irc.PTirc.org (Co-Admin)

Link Copied to Clipboard