mIRC Home    About    Download    Register    News    Help

Print Thread
#112595 25/02/05 03:24 PM
Joined: Jan 2005
Posts: 37
S
Scratch Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 37
I'm not sure if this is a bug, or if it's by design, but if you are connected to two servers, and type the following in one of the windows of the first connection:

//scid 2 echo -a Debug

It echoes in the active connection's (1) active window rather than connection 2's active window.

If this is not a bug, then can someone please tell me how to echo a specified connection ID's active window?

#112596 25/02/05 03:28 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Here's what I use

//echo $iif($cid == $activecid,-a,-s) <text>

~ Edit ~
Sorry, no I don't think it's a bug. -a echos to the active
window whether the originating connection is the active
connection or not. It's the intended behavior IMO, as it
should be, also IMO.

Last edited by mIRCManiac; 25/02/05 03:33 PM.
#112597 25/02/05 11:16 PM
Joined: Dec 2002
Posts: 266
Z
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
Not really. By definition -a means "active window". There is only ever 1 active window and that is the one you're looking at.

Typing /scon -a echo -a hi will return N results in the same window, N depends on how many connections you have open. They're all echo'd to the same window because it can only echo to 1 window, the active one.

It's not really a bug, the original command could just be interepted to work in different ways.


You won't like it when I get angry.

Link Copied to Clipboard