mIRC Home    About    Download    Register    News    Help

Print Thread
#58833 02/11/03 01:14 PM
A
Adler
Adler
A
hi, i will script with mts (theme), but i dont know how i could change the color box with other colors.

Has anybody an idea, or. tutorial for me?

#58834 02/11/03 04:55 PM
P
pheonix
pheonix
P
ctrl+k -> right click a colour

#58835 02/11/03 07:11 PM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
That doesn't work for me, perhaps you meant alt+k?

#58836 02/11/03 07:21 PM
P
pheonix
pheonix
P
yes.

#58837 02/11/03 10:03 PM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
From a script, you'd use the /color command ("/color <index> <RGB value>" - check mirc.hlp).

In case you don't know how to get an RGB value, you could use $rgb() for that, using the Red, Green and Blue values from the colour selection dialog (the one that appears when you right-click a colour box and define a custom colour).
Blue, for example, is R=0, G=0, B=255, which is $rgb(0,0,255), which returns 16711680. Supposing you wanted the colour number 0 to be blue, you'd either use "/color 0 $rgb(0,0,255)" or "/color 0 16711680".

Last edited by cold; 02/11/03 10:14 PM.
#58838 03/11/03 12:17 PM
A
Adler
Adler
A
nice thx cold, it works :-)


Link Copied to Clipboard