mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 87
T
Tat Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 87
I'm sick and tired having an extra command before all the windows I make.

if ($window(@mywindow)) { window -c @mywindow }
window -e @mywindow

I use windows quite often as a core data structure. So I need to make sure the window is blank. And if there's by some oddity already a window there, that say has a sidewindow or a entry space and I don't want it. I need to make sure the window I create has all the same stuff I tell it to. So I need to close any window that might exist.

I suggest having a flag that reinits any window.

It makes for adding a textbox at the bottom easy too. Or remove a sidebar.

So rather than:
if ($window(@mywindow)) { window -c @mywindow }
window -e @mywindow

window -je @mywindow

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
I would like this, I also find it tedious to do.

Btw you don't need the if check, you can simply do:


  • window -c @mywin
    window -e @mywin

But indeed, that still is an extra command that could be avoided if such built-in switch was added.


Gone.
Joined: Jan 2003
Posts: 87
T
Tat Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 87
Yeah, noticed the -c didn't spit out an error. Must have been fixed. Because I'm sure the thing yelled at me once. Still in the habit though.


Link Copied to Clipboard