mIRC Homepage
Posted By: RiMaJoy echo multiple windows - 11/02/10 07:08 PM
Hi,

I have this to display my lines in my style:

Code:
amsg { .amsg $1- | echo $1 05 $+ $timestamp  $+ $+(12 ,$me,) 2 $+ $__(core001) $+  $2- }
msg { .msg $1- | echo $1 05 $+ $timestamp  $+ $+(12 ,$me,) 2 $+ $__(core001) $+  $2- }


On the amsg the $1 after the echo is the channel/window it echo's to.
Because it is a amsg command i would like ot see it on all windows open in mirc except the status window.
No idea how to do that .... anyone who does is welcome to help me out.

Greetings RiMaJoy
Posted By: Horstl Re: echo multiple windows - 11/02/10 08:32 PM
Simply loop all joined channels. (As you don't use /qmsg, I'd leave out query windows etc. You anyway won't send the message to queries with that .amsg)
Example:
Code:
amsg {
  .amsg $1-
  var %n = 1
  while ($chan(%n)) {
    if ($chan($v1).status == joined) { echo $chan(%n) <your timestamp-stuff here> $1- }
    inc %n
  }
}
Posted By: RiMaJoy Re: echo multiple windows - 11/02/10 08:41 PM
thank u very much
Posted By: chacha Re: echo multiple windows - 11/02/10 10:26 PM
hi
that's an other version too

Code:
alias amsg {
  .amsg $1-
  var %i $1-
  tokenize 32 $regsubex($str(.,$chan(0)),/./g,$+($chan(\n),$chr(32)))
  echo $* <your timestamp-stuff here> %i
}


i like mIRC :p
© mIRC Discussion Forums