mIRC Home    About    Download    Register    News    Help

Print Thread
#144824 14/03/06 08:35 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
(/me once again opens himself up to ridicule and yes I *DID* search! (and read the help!))

This is only useful in halting default text to be honest. (or anything similar)

Example:

Code:
on ^*:text:*:*:{
  echo -ci2t normal $targetname ( $+ $nick $+ ) $1-
  haltdef
}


This echos '(nick) message' in the window where the message was sent, so if it was sent in lets say #chan3 then the $targetname would be #chan3, if it was via a private message then it would be nick. Same for dcc's and Status Windows etc.

As I'm aware of there is no current way of doing this without coding some kind of work around, if I'm wrong then point me out.

Last edited by Jigsy; 14/03/06 08:37 PM.

What do you do at the end of the world? Are you busy? Will you save us?
#144825 14/03/06 08:42 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
$target.

#144826 14/03/06 08:52 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
That didnt seem to work for me ... it kept echoing stuff to the Status Window ...

Code:
on ^*:text:*:*:{
  var %x = 0
  while (%x < $numtok($1-,32)) {
    inc %x 1
    if ($regex($gettok($1-,%x,32),(^http://*|^www.*)) == 1) {
      var %_s = %_s 12 $+ $gettok($1-,%x,32) $+ 
    }
    else { var %_s = %_s $gettok($1-,%x,32) }
  }
  echo -ci2t $target < $+ $nick $+ > %_s
  haltdef
}

Last edited by Jigsy; 14/03/06 08:54 PM.

What do you do at the end of the world? Are you busy? Will you save us?
#144827 14/03/06 09:02 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
That's because you're using /echo -c without supplying a [color] parameter.

#144828 14/03/06 09:06 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Quote:

[21:06:25] JigsWithoutWoodstock <W> http://www.google.com


in the Status Window ...


What do you do at the end of the world? Are you busy? Will you save us?
#144829 14/03/06 09:10 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
My previous reply stands. If you use /echo -c without supplying a color (required) parameter mIRC will echo to the status window instead of the window you specify.

#144830 14/03/06 09:15 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
I changed the coding

echo -ci2t normal $target ... etc.


What do you do at the end of the world? Are you busy? Will you save us?
#144831 14/03/06 09:18 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Well the exact same script works for me. Weird.

#144832 15/03/06 11:52 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
$iif($target == $me,$nick,$target)

in query the $target is your own nick and you have to use $nick to get the real target


If it ain't broken, don't fix it!
#144833 16/03/06 10:01 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I use $iif(#,#,$nick) in such on TEXT events, it's probably the shortest equivalent.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard