mIRC Home    About    Download    Register    News    Help

Print Thread
E
EffingHell
EffingHell
E
Like ehm.. <Someone> says hello How can I make is something like |Someone| says hello


:S

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
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,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
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,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Fixed. I forgot about that.

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

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,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
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,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
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.

5
5618
5618
5
(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.
E
EffingHell
EffingHell
E
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

C
CitizenKane
CitizenKane
C
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,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
You do for most events but not on INPUT.

C
CitizenKane
CitizenKane
C
Ah, sorry. Replace "haltdef" with "halt"? That's what I use...


Link Copied to Clipboard