mIRC Home    About    Download    Register    News    Help

Print Thread
#71533 15/02/04 10:22 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
is it possible to make thru scripting that all notices go to @window?

if yes, how?

#71534 16/02/04 01:26 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
try something like
Code:
  
on ^1:notice:*:?: {
echo @window $1-
halt
}

#71535 16/02/04 01:53 AM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
after real notice it writes this in status

example notice:

Notice: welcome to x network
@window welcome to x network

#71536 16/02/04 02:35 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
Code:
  
on ^1:notice:*:?: {
echo @window $1-
haltdef
}

might need to be haltdef

#71537 16/02/04 06:42 AM
Joined: Apr 2003
Posts: 36
L
Ameglian cow
Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 36
You need to have the window open in order to print to it. Simple version:
Code:
on ^*:notice:*:?: {
window @window
echo @window $1-
haltdef
}

More complex version (I like it more, allows for timestamps, wrapping, the nick, and window placement at the end of all servers
Code:
on ^*:notice:*:?: {
window -zk[0] @window
echo -itg @window - $+ $nick $+ - $1-
haltdef
}

If you want to know what each of the paramaters do, look up echo and window in the manual :P

#71538 16/02/04 11:15 AM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
ok now i get same thing:

real notice and clone notice in @window smirk

#71539 16/02/04 08:43 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Notice: welcome to x network
If ^^that^^ is the "real" notice it's another script, not mIRCs default notice display. (-Nick- message here)
Code:
on ^*:notice:*:?:{
  if !$window(@Notices) { window -n @Notices }
  echo -mlirtc notice @Notices $+(-,$nick,-) $1-
  haltdef
}


#71540 16/02/04 09:30 PM
Joined: Sep 2003
Posts: 584
B
bunar Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Sep 2003
Posts: 584
thanks much !!!!!


Link Copied to Clipboard