Well you're going to more trouble than you need to with that code. You can echo to the active connection's status window with this:

Code:
/scid $activecid echo -s Blah


The reason your code wasn't working is because of the way mIRC treats the /scon and /scid commands. The thing to remember is that /scon and /scid behave like /timer, so all of their parameters are evaluated twice: Once for the script's default connection and then again for the connection you set it to. For your original code to work you'd have to prevent the identifiers from being evaluated on the first "pass" by either using $eval(code, 0) or the ! prefix on each identifier. eg.

Code:
/scon -a if ( $!network == $!scid($activecid).network ) /echo -s Blah


Note that there's still a potential bug there if you happen to connect to the same network twice, so you're better off using the "/scid $activecid echo -s Blah" method

It's important to consider this double evaluation behaviour when echo'ing text sent by other people. For example if you planned to change your code to:
Code:
on *:text:*:*:scid $activecid echo -s $1-


then there's a big security risk there because if they type "hi $identifier", $identifier will be evaluated.

There are ways around that though. Here's a simple(ish) way:
Code:
on *:text:*:*:{
  var %tmpvarname = $+(%,temp.ontext.,$chan,.,$ticks)
  set -u0 % $+ %tmpvarname $1-
  scid $activecid echo -s $+(%,%tmpvarname)
}


Using the previous example that would correctly echo "hi $identifier" to the active connection's Status Window without evaluating $identifier.


Spelling mistakes, grammatical errors, and stupid comments are intentional.