mIRC Home    About    Download    Register    News    Help

Print Thread
colored text #200803 12/06/08 08:25 AM
Joined: Jun 2008
Posts: 2
B
badrobot Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Jun 2008
Posts: 2
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]

Re: colored text [Re: badrobot] #200810 12/06/08 11:41 AM
Joined: May 2008
Posts: 329
A
AWEstun Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
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.



I registered; you should too.
Re: colored text [Re: AWEstun] #200826 13/06/08 01:19 AM
Joined: May 2008
Posts: 329
A
AWEstun Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
In my example above I have the colors reversed. The background color is first then the foreground text color.


I registered; you should too.
Re: colored text [Re: AWEstun] #200827 13/06/08 02:10 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Foreground is first, background is second.

-genius_at_work

Re: colored text [Re: AWEstun] #200860 13/06/08 08:53 PM
Joined: Jun 2008
Posts: 2
B
badrobot Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Jun 2008
Posts: 2
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.

Re: colored text [Re: badrobot] #200862 13/06/08 09:01 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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).


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: colored text [Re: badrobot] #200868 13/06/08 10:31 PM
Joined: Aug 2006
Posts: 37
D
DragonRyder Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: Aug 2006
Posts: 37
very bad idea using so much colors - bound to upset folks