mIRC Home    About    Download    Register    News    Help

Print Thread
#58833 02/11/03 01:14 PM
Joined: Mar 2003
Posts: 58
A
Adler Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Mar 2003
Posts: 58
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
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
ctrl+k -> right click a colour


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

#58836 02/11/03 07:21 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
yes.


new username: tidy_trax
#58837 02/11/03 10:03 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
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.

* cold edits his posts 24/7
#58838 03/11/03 12:17 PM
Joined: Mar 2003
Posts: 58
A
Adler Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Mar 2003
Posts: 58
nice thx cold, it works :-)


Link Copied to Clipboard