mIRC Home    About    Download    Register    News    Help

Print Thread
#124186 03/07/05 08:17 AM
Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
with /window -h @windowname I can hide a window, but if I have 2 status windows open, how can I hide the second status window?

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Use /scon, I think. smile

Edit:

Code:
alias status {
  if (!$scon($1)) return 
  else { scon $1 window -h "Status Window" }
}


/status N - Hides Nth Status Window.

-Andy

Last edited by SladeKraven; 03/07/05 08:28 AM.
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
just went to see if u need to check if the scon(x) exists, or if you can just issue it to a non existing and it would do nothing, (it doesnt it errors)

but the error is funny

/scon 2 window -h "Status Window"
* No such connection id: 1

/scon 34 window -h "Status Window"
* No such connection id: 33

* must reduce it by one to match an internal list, then forgets to re-up it.

Joined: Apr 2005
Posts: 53
A
aDevil Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Apr 2005
Posts: 53
thanks guys, it is working good for me wink


Link Copied to Clipboard