mIRC Home    About    Download    Register    News    Help

Topic Options
#263922 - 11/10/18 06:10 PM Close status window
Tiago Offline
Babel fish

Registered: 05/07/14
Posts: 79
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
PTnet (Portugal)

Top
#263923 - 11/10/18 06:41 PM Re: Close status window [Re: Tiago]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 969
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)

Top
#263924 - 11/10/18 08:11 PM Re: Close status window [Re: maroon]
Tiago Offline
Babel fish

Registered: 05/07/14
Posts: 79
Hi maroon,

Tell me something. Is it possible to return the number of open status windows through some command?
_________________________
TECO
PTnet (Portugal)

Top
#263925 - 11/10/18 08:13 PM Re: Close status window [Re: Tiago]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1510
Loc: Greece
$scon(0)

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

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


Edited by westor (11/10/18 08:16 PM)
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#263926 - 11/10/18 10:05 PM Re: Close status window [Re: westor]
Tiago Offline
Babel fish

Registered: 05/07/14
Posts: 79
Thank you westor wink
_________________________
TECO
PTnet (Portugal)

Top