mIRC Homepage
Posted By: Kriminal How to NOT evalutate a code - 10/05/04 06:13 AM
How do you make text NOT evalutate... like some identifier
$whateveridentifier(code) and it'll just return it, not evaluate it...
Posted By: Kriminal Re: How to NOT evalutate a code - 10/05/04 06:21 AM
Basically, If I do this:
$rgb($color($remove(%theme.color,)))
%theme.color = 14
Now that'll return the $rgb code, but Im trying to do it in a dialog, and this is HOW it WOULD be done in a dialog (MDX)
mdx SetColor $dname 1,2,3,4,13 text $rgb( $+ $rgb($color($remove(%theme.color,))) $+ )
which would be (if used //echo -a i think)
mdx SetColor $dname 1,2,3,4,13 text $rgb(176,176,240)
but it DOESN'T work, it tries to evaluate it and treats it as whatever $rgb actually returns I THINK is whats happening... please help :-P
Posted By: Collective Re: How to NOT evalutate a code - 10/05/04 06:23 AM
There are a number of ways:
$eval($whateveridentifier(code),0)
$($whateveridentifier(code),0) <-- $() is the same as $eval()
$!whateveridentifier(code)
$+($,whateveridentifier(code))
$ $+ whateveridentifier(code)

Edit: $() typo.
Posted By: Kriminal Re: How to NOT evalutate a code - 10/05/04 06:31 AM
Well, I'm trying to make it do this:
//echo -a $ $+ r $+ g $+ b $+ ( $+ $($rgb($color($remove(%theme.color,)))),0) $+ )
(Set %theme.color to colorbox14)
See i could put that in the init code, but it would try to evaluate it, I tried one of the codes above and it didnt work, so Im guessing none of them would work...
Posted By: Wolfie Re: How to NOT evalutate a code - 10/05/04 06:43 AM
$!identifier (makes it not be evaluated for 1 pass)
$!!identifier (for two passes, !!! for three, etc)
Posted By: Kriminal Re: How to NOT evalutate a code - 12/05/04 11:38 PM
mdx SetColor $dname 1,2,3,4,13 textbg $rgb(0,0,0)
mdx SetColor $dname 1,2,3,4,13 text $!rgb($color($remove(%theme.color,)))
^ Still not working... ^
Posted By: tidy_trax Re: How to NOT evalutate a code - 13/05/04 11:25 AM
$!rgb $+ ( $+ $color($remove(%theme.color,)) $+ )
Posted By: Wolfie Re: How to NOT evalutate a code - 14/05/04 07:34 PM
Code:
$!rgb(  $color($remove(%theme.color,)) )
that should work too. grin

Posted By: Kriminal Re: How to NOT evalutate a code - 15/05/04 05:34 AM
nope Guys, None worked...
Here I'll break it down of what im trying to go
Im trying to get the $rgb of: $color(%theme.color)
%theme.color = COLORBOX14
So I gotta remove the colorbox and then I have $rgb($color(%theme.color) (with the removes, but w/e) and that would return something like (NUM,NUM,NUM) and then I need the "$rgb" next to it to actually make it work when I open the dialog, so any other suggestions on how I can do this?
Posted By: Iori Re: How to NOT evalutate a code - 15/05/04 05:52 AM
Try just using $color($remove(%theme.color,))
That will return something like "8355711", which is what MDX expects.
© mIRC Discussion Forums