mIRC Home    About    Download    Register    News    Help

Print Thread
#189795 12/11/07 12:37 AM
P
pouncer
pouncer
P
how can I echo different using different rgb colors?

is it possible

#189800 12/11/07 01:01 AM
Joined: Jun 2006
Posts: 506
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 506
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
P
pouncer
pouncer
P
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?

#189803 12/11/07 01:18 AM
Joined: Jun 2006
Posts: 506
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 506
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
P
pouncer
pouncer
P
Thanks, if i have something like

#0000FF

how do i convert that to store it?

like /color 8 $convertalias(#0000FF)

#189905 13/11/07 02:11 AM
Joined: Feb 2006
Posts: 523
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 523
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,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
You guys know there's an $rgb identifier, right?

argv0 #189949 14/11/07 01:13 AM
Joined: Feb 2006
Posts: 523
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 523
$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