mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 423
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
hey guys,

i have a question.... in my script i'm colorizing some text and putting it into vars... sometimes the text starts off with numbers like 19.blah.blah...

but when i do something like:
%blah = (ctl + k)color $+ $remove($remove($wildtok(%temp,[*],2,58),[),])

i don't get the color i want and i loose the 1st digit in the desired text.. i assume its because i'm joining the 2 and mirc is getting confused.. If that's the case how can i fix that?

i hope i'm not confusing with my explanation of my issue..

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If your colour code is under 10, force it to a double digit number by putting a 0 in front of it.

Code:
%blah = $+($chr(3),04,$remove($wildtok(%temp,[*],2,58),[,]))


$chr(3) is the same as Ctrl+K and you can specify multiple items with a single $remove.

The code I posted uses 04 for the colour code, which is the same as 4 or red.

Joined: Aug 2004
Posts: 423
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
thanks RusselB for the repsonse.. laugh

but i just figured out what i kinda thought was starring at me in the face, which was the obvious.. my problem was that i was combining the color with the text... so i was confusing the script as i thought... all i needed to do was to space them and it tested out fine.. DOH!

and i also switched to double digit colors like you suggested.. and also thanks for letting me know about the chr # for the ctl+k laugh



Link Copied to Clipboard