mIRC Home    About    Download    Register    News    Help

Print Thread
#125575 19/07/05 04:05 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Is it possible to have a script that will open a window and everything with your name on it will be logged there
so when someone types : Hey Dracoz
Then it will be logged and stored in that window..?

#125576 19/07/05 04:13 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
on *:TEXT:*Dracoz*:*:{
window -n @mynick
aline -p @mynick $time $nick said $1-
}

#125577 19/07/05 04:20 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on *:text:*:*: {
  if ($me isin $1-) {
    if (!$window(@NickWatch)) {
      window -kn @NickWatch
    }
    if ($chan != $null) {
      aline @NickWatch $chr(91) $+ $time(hh:nntt) $+ $chr(93) $chr(123) $+ $network $+ $chr(125) $chr(91) $+ $chan $+ $chr(93) < $+ $nick $+ > $1-
    }
    else {
      aline @NickWatch $chr(91) $+ $time(hh:nntt) $+ $chr(93) PM: < $+ $nick $+ > $1-
    }
  }
}


This should do what you need. If the output is within a channel, you will log something like this:

[5:23pm] {EFnet} [#mychan] <mynick> Hello Draco.

If it's said anywhere else (like private message), you'll get an output like:

[5:23pm] PM: <mynick> Hello Draco.

Note that you can easily remove the $time, $network and $chan sections from the output if you don't like those. You can also add any coloring that you need.


Invision Support
#Invision on irc.irchighway.net
#125578 19/07/05 04:31 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
yeah i whas looking for this this it it laugh:D
Thank you verry much

#125579 19/07/05 05:10 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
just for fun try $target
Also I like the -pi switches to make it easier to read
Code:
on *:TEXT:$($+(*,$me,*)):*:{
  window -n @mynick
  aline -pi @mynick $upper($nick) said: $time in Window: $+(",$target,") on: $network $1-
} 

#125580 19/07/05 08:15 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
With $target, if someone pm's you, the $target is you.

I would do it like this

Code:
 on *:TEXT:$($+(*,$me,*)):*:{
  window -n @mynick
  aline -pi @mynick $upper($nick) said: $time in Window: $+(",$iif(#,#,$nick),") on: $network $1-
}  


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#125581 19/07/05 08:26 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I had tested that one, so I knew it would have "my nick" as the window name. Using $+(",$iif(#,#,$nick),") of course is a nicer way to show the source smile

#125582 19/07/05 08:35 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just as a personal preference.. I would want to have the output exactly as it originally was... that would include the nick. Why use $upper on the nick??? shocked


Invision Support
#Invision on irc.irchighway.net
#125583 19/07/05 10:05 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
for me is just makes it stand out, if I were scrolling through looking for a specific name then it would make the nicks stand out more from the rest of the text. This is also why I used the word wrap and indent switch combination.

I'm hard of seeing I guess smile


Link Copied to Clipboard