mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Hi,

I'm wondering if there's a way to write something that will echo in the active chat window anything important that happens in the status window. I want it to tell me when someone pings or versions me, but to exclude anything else like server pings. Thanks.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
ctcp *:ping*:*:{
  echo -a $nick pinged you.
}
ctcp *:version*:*:{
  echo -a $nick versioned you.
}


As those are just CTCP events, these should work for you.


Invision Support
#Invision on irc.irchighway.net
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Do ALT-O -> IRC -> Then check the boxes where it says "Show in Active".


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Well, it depends what he wants shown. From the sounds of it, he only wants specific things to be shown in active.


Invision Support
#Invision on irc.irchighway.net
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
That's true, that's why I gave him that option too & maybe that's what he was looking for.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
After I posted, I realized that I could just do what Riamus posted. I thought about it some more and I think that it would be better (if this is possible) to have it open a custom window that displays the info, then closes in 10 seconds or so. I don't know much about custom windows, so I'm not sure how to do that and put it on a timer.

Joined: Sep 2005
Posts: 20
Ameglian cow
Offline
Ameglian cow
Joined: Sep 2005
Posts: 20
Code:
 
ctcp *:ping*:*:{
    if (!$window(@Info)) window -kwz @Info
   aline @info  $nick pinged you.
}
ctcp *:version*:*:{
    if (!$window(@Info)) window -kwz @Info
   aline @info  $nick versioned you.
} 
 

I dont know what's the idea to open a window for 10 seconds... when it's not sure u can see it for so small piece of time but.... if u want timers.... just add this line.... uh.... just to be like this...

Code:
 
ctcp *:ping*:*:{
    if (!$window(@Info)) window -kwz @Info
   aline @info  $nick pinged you.
  if (!$timer(info)) .timerInfo 1 10 window -c @info
}
ctcp *:version*:*:{
    if (!$window(@Info)) window -kwz @Info
   aline @info  $nick versioned you.
  if (!$timer(info)) .timerInfo 1 10 window -c @info
} 
 


But i think it's better not to use the timer.... 'cause when the timer is activated ..... u can have only 1 second left and there to be an action to be printed.... and u wont see it.....

P.S. I hope the 3 lines code to work 'cause i haven't tested it....

Respect !!!


Link Copied to Clipboard