mIRC Home    About    Download    Register    News    Help

Print Thread
#50789 22/09/03 08:49 PM
Joined: Aug 2003
Posts: 9
V
veritas Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
V
Joined: Aug 2003
Posts: 9
Hiya peepz,
I'm trying to create something that displays server messages into the active window of the server in which they got triggered.

I made something like this:
/scid %tmp.cid echo $colour(notice text) -at [server notice] $1-

Yet, the message still gets displayed into my current active window. Anybody know what I'm doing wrong here?


--
They who dream by day are cognizant of many things which escape those who dream only by night.
#50790 22/09/03 08:55 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
Code:
alias aecho echo $iif($cid == $activecid,-a,-s) $1-


to test it .. in a channel or query window or something
type /scid -at1 aecho test

that will echo to the active window on the active CID and to the status window of the other CID

your echo command with the -a switch will make it echo to the active window no matter if active window is different CID or not.

Last edited by r0ck0; 22/09/03 09:02 PM.
#50791 22/09/03 09:28 PM
Joined: Aug 2003
Posts: 9
V
veritas Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
V
Joined: Aug 2003
Posts: 9
thanks for your quick answer.
but...

Your script doenst do the stuff I want it to.
I want the server messages to be displayed into a window of the server in which they got triggered.


--
They who dream by day are cognizant of many things which escape those who dream only by night.
#50792 22/09/03 09:34 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
Code:
on *:SNOTICE:*:echo $color(notice) $iif($cid == $activecid,-at,-bflst) $+(-,$nick,-) $1-


that will make it echo to active window if the active CID is same as the event CID .. it will echo to status window of event CID if active CID is not same as event CID.

Last edited by r0ck0; 22/09/03 10:15 PM.
#50793 22/09/03 09:43 PM
Joined: Aug 2003
Posts: 9
V
veritas Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
V
Joined: Aug 2003
Posts: 9
r0ck0, you've been a big help!
Thanks smile


--
They who dream by day are cognizant of many things which escape those who dream only by night.
#50794 22/09/03 09:47 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
mp smile


Link Copied to Clipboard