mIRC Homepage
Posted By: aDevil A little window help please - 03/07/05 08:17 AM
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?
Posted By: SladeKraven Re: A little window help please - 03/07/05 08:19 AM
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
Posted By: DaveC Re: A little window help please - 03/07/05 08:52 AM
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.
Posted By: aDevil Re: A little window help please - 03/07/05 09:07 AM
thanks guys, it is working good for me wink
© mIRC Discussion Forums