mIRC Home    About    Download    Register    News    Help

Print Thread
#189795 12/11/07 12:37 AM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
how can I echo different using different rgb colors?

is it possible

pouncer #189800 12/11/07 01:01 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Unless there's a DLL that does that, you can't. You can change the RGB color of each of the 16 colors by right clicking the square in the colors dialog or by the /color command.

deegee #189801 12/11/07 01:07 AM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
Originally Posted By: deegee
Unless there's a DLL that does that, you can't. You can change the RGB color of each of the 16 colors by right clicking the square in the colors dialog or by the /color command.


yea i was thinking that might be possible, writing a new color to the mirc.ini for one of the 16 slots, then use this slot for my echos?

problem is, the colors are in user text messages which i strip out from the on text event

so every time a user types something, i have to use the /color command and echo using that slot?

pouncer #189803 12/11/07 01:18 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Originally Posted By: pouncer
so every time a user types something, i have to use the /color command and echo using that slot?

No, if you use say /color 8 7693989 it changes the RGB value of $color(8), you can reset it /color -r 8 or change it again but until you do it will stay as 7693989.

deegee #189904 13/11/07 01:46 AM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
Thanks, if i have something like

#0000FF

how do i convert that to store it?

like /color 8 $convertalias(#0000FF)

pouncer #189905 13/11/07 02:11 AM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
hi!

Code:
alias convertalias return $base($+($mid(#$1,6),$mid(#$1,4,2),$mid(#$1,2,2)),16,10)


$convertalias(#0000FF) = $convertalias(0000FF) = 16711680


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
jaytea #189929 13/11/07 04:19 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
You guys know there's an $rgb identifier, right?


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #189949 14/11/07 01:13 AM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
$rgb() won't help you convert a color in hex format, such as #0000FF, into an rgb value as easily as in my example. read his post again and think about it wink


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde

Link Copied to Clipboard