mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2007
Posts: 37
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Jun 2007
Posts: 37
Like ehm.. <Someone> says hello How can I make is something like |Someone| says hello


:S

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on ^*:text:*:*: {
  echo $target $timestamp $+(|, $nick ,|) $1-
  haltdef
}

on *:input:*: {
  if (/* iswm $1 || $readini($mircini,text,commandchar) $+ * iswm $1 || $ctrlenter) { return }
  .msg $target $1-
  echo $target $timestamp $+(|, $me ,|) $1-
  haltdef
}

Last edited by Riamus2; 07/07/07 02:14 AM.

Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on ^*:text:*:*:{
  echo -abcfilmrt norm $+(|,$nick,|) $1-
  haltdef
}
on *:input:*:{
  if ($istok(channel chat query,$window($active).type,32)) && ((!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) || ($ctrlenter) || ($inpaste)) { 
    .msg $active $1- 
    echo -abcfilmrt own $+(|,$me,|) $1-
    haltdef
  }
}


This will make sure the message uses the colours you've specified in the options dialog, and will also respect things like timestamp/highlight settings.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
That on input event will stop all commands from being executed and messages from being sent. /haltdef stops that behaviour as well.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Fixed. I forgot about that.

Anyhow, use hixxy's as it's better.


Invision Support
#Invision on irc.irchighway.net
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Hmm, I just tried that script from Hixxy, but that messes your mIRC up pretty much.
It sends the text to the active window, but if you have 20 channels open, it will send the text from all those 20 channels to the active window!

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Yep you're right.

Code:
on ^*:text:*:*:{
  echo -bcfilmrt norm $chan $+(|,$nick,|) $1-
  haltdef
}
on *:input:*:{
  if ($istok(channel chat query,$window($active).type,32)) && ((!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) || ($ctrlenter) || ($inpaste)) { 
    .msg $active $1- 
    echo -abcfilmrt own $+(|,$me,|) $1-
    haltdef
  }
}

Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
This works a lot better indeed!
Thx laugh

Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Uhm, now it sends private messages to the status window, instead of to the query window...

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
The echo line in the on TEXT event should be
Code:
echo -mbflirt $iif(#,#,$nick) $+(|,$nick,|) $1-
(side note: $target is not applicable here either: in a private message, $target returns your own nick, however to echo text to the query window, you need the other person's nick).

To keep multiple consecutive spaces visible, one could replace $1- with $text, after adding this alias:
Code:
alias text return $regsubex($mid($rawmsg,$pos(. $rawmsg,$chr(32),4)),/(?<=^| )(?=$| )/g,)
It's a bit of a hack though; the only 'proper' way for a script to display multiple spaces is spaces.dll.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
(never mind)

Last edited by 5618; 07/07/07 09:58 AM.
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Yeah, this is better again. Seems to work fine for now.

Thx grin

Last edited by OrionsBelt; 07/07/07 10:02 AM.
Joined: Jun 2007
Posts: 37
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Jun 2007
Posts: 37
Code:
on 1:input:#:{
  if ($left($1,1) != /) && ($right($1,1) == :) {
    say $+(6× 10,$ialchan($+($remove($1,$right($1,1)),*!*@*),#,1).nick, 6×) $2-
    haltdef
  }
}



How ca I get this code to work with the one hixxy posted, when I have them both loaded, it repeats what I say

Joined: Mar 2006
Posts: 47
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Mar 2006
Posts: 47
You have to put the "^" in front:
Code:
on ^1:input:#:{


Also, here are pieces of my scripts dealing with rewriting the format of events, if anyone cares to check.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You do for most events but not on INPUT.

Joined: Mar 2006
Posts: 47
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Mar 2006
Posts: 47
Ah, sorry. Replace "haltdef" with "halt"? That's what I use...


Link Copied to Clipboard