mIRC Homepage
Posted By: badrobot colored text - 12/06/08 08:25 AM
im new to irc scripting.
i want my text to have some colors and/or art everytime i type any message. how will i do this?
eg.
<badrobot> [xXx] Hello Everyone! [xXx]
<badrobot> [xXx] Nice Meeting You All! [xXx]
<badrobot> [xXx] Have a Great Afternoon! [xXx]
Posted By: AWEstun Re: colored text - 12/06/08 11:41 AM
The easiest way to add color is to use ctrl-k and select a number from 1-15. Also you can add background color to the forground text color but selecting 2 numbers (1-15 each) seperated by a comma, after ctrl-k. For example:

<ctrl-k> 7 is orange

<ctrl-k 7,13 is orange on pink

<ctrl> 7,13 This text is orance on a pink background.

Posted By: AWEstun Re: colored text - 13/06/08 01:19 AM
In my example above I have the colors reversed. The background color is first then the foreground text color.
Posted By: genius_at_work Re: colored text - 13/06/08 02:10 AM
Foreground is first, background is second.

-genius_at_work
Posted By: badrobot Re: colored text - 13/06/08 08:53 PM
i know the ctrl+k thingie.. but what i really want is an addon or a script so that i dont need to type in ctrl+k everytime i type a message.
Posted By: argv0 Re: colored text - 13/06/08 09:01 PM
you can change your colours locally with Alt-K (colors dialog). Alternatively you can use an ON INPUT script to change your text as you type it. Note that most IRC users *HATE THIS* and will likely get you in lots of trouble, so I wouldn't suggest doing it. If you don't want to listen to me, you can use this:

Code:
ON *:INPUT:#:if (/* !iswm $1- && !$ctrlenter) { .msg # $chr(3) $+ MYCOLORHERE $+ $1- | halt }


Change MYCOLORHERE to your colour but if it's only 1 digit prefix it with a 0 (use 04 not 4) and place it in Alt-R (remotes).
Posted By: DragonRyder Re: colored text - 13/06/08 10:31 PM
very bad idea using so much colors - bound to upset folks
© mIRC Discussion Forums