mIRC Home    About    Download    Register    News    Help

Print Thread
#110541 07/02/05 11:48 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
on *:text:*:?:{
if ( $window !== $active ) { echo -alt < $+ PM: $nick $+ > $1- }
if !$appactive {
talk You were PMed by $nick
}
}
This script should do everithing it does now, except echo-ing when the PM window is active. How to scipt that? The if i'm using (" if ( $window !== $active ) ") now is'nt working.

#110542 08/02/05 01:07 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
on *:text:*:?:{
  if ( $nick != $active ) { echo -alt &lt; $+ PM: $nick $+ &gt; $1- }
  if !$appactive { talk You were PMed by $nick }
}


$active if your in a PM to DaveC replies with "DaveC" ( no " " ) so checking if the $nick not equal $active well be the one you want, loks odd i know but is it, sicne $nick is the PM window name.

#110543 08/02/05 11:33 AM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
thanks a lot!


Link Copied to Clipboard