mIRC Home    About    Download    Register    News    Help

Print Thread
#111818 19/02/05 08:17 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
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


The Kodokan will move you, one way or another.
#111819 19/02/05 12:49 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
didint work at all for me
just wound up having the numbers inserted into the text

thanks anyways


The Kodokan will move you, one way or another.
#111821 19/02/05 08:23 PM
Joined: Oct 2003
Posts: 88
B
Babel fish
Offline
Babel fish
B
Joined: Oct 2003
Posts: 88
Why would you want to be annoying, so channel ops have to set +c ?


Basicer - Windows 7 Business x86
#111822 19/02/05 08:57 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
actuallt what is is is it was wrapping and i didnt realize it


The Kodokan will move you, one way or another.
#111824 19/02/05 09:54 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
pardon?

#111825 19/02/05 10:48 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
OP Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
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


The Kodokan will move you, one way or another.
#111826 19/02/05 11:50 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
If you do that, remember to remove all ubb code. smile


Link Copied to Clipboard