mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 16
T
tye Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Dec 2002
Posts: 16
I have two /window suggestions

Add /window -g3 to highlight with the event colour

Add a /window switch to change the state of a window (ie -x or -r) but not activate it


Tye on Undernet and DALnet
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Guess what, /window -g3 already works. It colours the switchbar button with the event colour.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
var %active = $active
window -xr <windowname>
window -a %active

If there are multiple connections involved,

var %active = $cid $active
window -xr <windowname>
scid $gettok(%active, 1, 32)
window -a $gettok(%active, 2, 32)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Yeah it's the best you can do for now I guess. Btw, instead of setting a %var to $active you can use $lactive. Also, the window name should be enclosed in quotes, in order to work properly for window names of more than 1 word:

window -xr <windowname>
window -a $+(",$$lactive,")


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 16
T
tye Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Dec 2002
Posts: 16
Thank you qwerty, that one isn't documented in the help file.


Tye on Undernet and DALnet
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
It is documented; I just wasn't positive it worked across scons so I played it safe instead. smile

/help on ACTIVE


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Dec 2002
Posts: 16
T
tye Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Dec 2002
Posts: 16
That was actually a reply to the /window -g3, but thank you for your suggestion too, Hammer.


Tye on Undernet and DALnet

Link Copied to Clipboard