mIRC Home    About    Download    Register    News    Help

Print Thread
Close status window #263922
11/10/18 05:10 PM
11/10/18 05:10 PM
Joined: Jul 2014
Posts: 118
Tiago Offline OP
Vogon poet
Tiago  Offline OP
Vogon poet

Joined: Jul 2014
Posts: 118
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 (IRCop)
Re: Close status window [Re: Tiago] #263923
11/10/18 05:41 PM
11/10/18 05:41 PM
Joined: Jan 2004
Posts: 1,158
maroon Offline
Hoopy frood
maroon  Offline
Hoopy frood

Joined: Jan 2004
Posts: 1,158
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)

Re: Close status window [Re: maroon] #263924
11/10/18 07:11 PM
11/10/18 07:11 PM
Joined: Jul 2014
Posts: 118
Tiago Offline OP
Vogon poet
Tiago  Offline OP
Vogon poet

Joined: Jul 2014
Posts: 118
Hi maroon,

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


TECO
irc.PTirc.org (IRCop)
Re: Close status window [Re: Tiago] #263925
11/10/18 07:13 PM
11/10/18 07:13 PM
Joined: Dec 2008
Posts: 1,511
Greece
westor Offline
Hoopy frood
westor  Offline
Hoopy frood

Joined: Dec 2008
Posts: 1,511
Greece
$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? -> http://westor.ucoz.com/contact <-
Re: Close status window [Re: westor] #263926
11/10/18 09:05 PM
11/10/18 09:05 PM
Joined: Jul 2014
Posts: 118
Tiago Offline OP
Vogon poet
Tiago  Offline OP
Vogon poet

Joined: Jul 2014
Posts: 118
Thank you westor wink


TECO
irc.PTirc.org (IRCop)