mIRC Home    About    Download    Register    News    Help

Print Thread
#218374 11/02/10 07:08 PM
Joined: Jul 2008
Posts: 57
R
RiMaJoy Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jul 2008
Posts: 57
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

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
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
  }
}

Joined: Jul 2008
Posts: 57
R
RiMaJoy Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jul 2008
Posts: 57
thank u very much

Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
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


WorldDMT

Link Copied to Clipboard