mIRC Home    About    Download    Register    News    Help

Print Thread
#111818 19/02/05 08:17 AM
R
ricky_knuckles
ricky_knuckles
R
ive recently decided that im not annoying enough so id like to add a color scheme to everything that i type
id like it to run through a patern going through each character
1 2 12 10 11 10 12 2 1 2 12 10 11 10 12
so one etc coloring each character

#111819 19/02/05 12:49 PM
D
DaveC
DaveC
D
Code:
on *:input:#:input.event $1-
on *:input:?:input.event $1-
on *:input:=:input.event $1-
alias -l input.event {
  if (($ctrlenter) || ((/* !iswm $1-) && ($iif($readini(mirc.ini,text,commandchar),$v1,/) $+ * !iswm $1-))) {
    var %org = $strip($1-)
    var %max = $len(%org)
    if (%max <= 110) {
      if (%rk.ie.colors == $null) set %rk.ie.colors 01 02 12 10 11 10 12 02 01 02 12 10 11 10 12
      var %new
      var %lastchar
      var %space = $chr(32)
      var %i = 1
      while (%i <= %max) {
        var %new = %new $+ $iif(%lastchar == %space,$v1) $+  $+ $left(%rk.ie.colors,2) $+ $mid(%org,%i,1)
        set %rk.ie.colors $mid(%rk.ie.colors,4) $left(%rk.ie.colors,2)
        var %lastchar = $mid(%org,%i,1)
        inc %i
      }
      say %new
      halt
    }
  }
}


* I couldnt get the on inputs to work as one with #?= so i made 3 and called the routine.
* It doesnt convert lines begining with the prefix character or / unless you have ctrl down.
* It doesnt convert lines over 110 becuase while it could do a line double that, the irc servers dont deal lines over 440 characters aprox, and each character needs 3 extras, hence 440 / 4 110
* The colors 01 02 12 10 11 10 12 02 01 02 12 10 11 10 12 rotate around, and dont reset each line entered, if u wanted them to then remove if (%rk.ie.colors == $null)

* tested but not riggeruosly.

#111820 19/02/05 08:20 PM
R
ricky_knuckles
ricky_knuckles
R
didint work at all for me
just wound up having the numbers inserted into the text

thanks anyways

#111821 19/02/05 08:23 PM
B
basicer
basicer
B
Why would you want to be annoying, so channel ops have to set +c ?

#111822 19/02/05 08:57 PM
D
DaveC
DaveC
D
did you loose the ctrl-k code from this line by any chance?
var %new = %new $+ $iif(%lastchar == %space,$v1) $+  $+ $left(%rk.ie.colors,2) $+ $mid(%org,%i,1)

#111823 19/02/05 09:27 PM
R
ricky_knuckles
ricky_knuckles
R
actuallt what is is is it was wrapping and i didnt realize it

#111824 19/02/05 09:54 PM
D
DaveC
DaveC
D
pardon?

#111825 19/02/05 10:48 PM
R
ricky_knuckles
ricky_knuckles
R
in a vain attempt to keep the indentions correct and the wrapping correct i stuck in ina word file and then pasted to mirc
but the code wraped which broke some of the longer line inot two pieces thereby making it not work
i couldnt paste it directly because i would end up with a single line
next time ill use word pad

#111826 19/02/05 11:50 PM
D
DaveC
DaveC
D
just click the quote link next to the reply link, then cut the code out of there, then click BACK on the browser, it comes out normally when copied from a quote.

#111827 20/02/05 07:43 AM
I
Iori
Iori
I
If you do that, remember to remove all ubb code. smile


Link Copied to Clipboard