mIRC Home    About    Download    Register    News    Help

Print Thread
How to NOT evalutate a code #82547 10/05/04 06:13 AM
Joined: Dec 2003
Posts: 199
K
Kriminal Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
How do you make text NOT evalutate... like some identifier
$whateveridentifier(code) and it'll just return it, not evaluate it...


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
Re: How to NOT evalutate a code #82548 10/05/04 06:21 AM
Joined: Dec 2003
Posts: 199
K
Kriminal Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
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


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
Re: How to NOT evalutate a code #82549 10/05/04 06:23 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.

Last edited by Collective; 10/05/04 06:25 AM.
Re: How to NOT evalutate a code #82550 10/05/04 06:31 AM
Joined: Dec 2003
Posts: 199
K
Kriminal Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
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...


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
Re: How to NOT evalutate a code #82551 10/05/04 06:43 AM
Joined: Aug 2003
Posts: 325
W
Wolfie Offline
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
$!identifier (makes it not be evaluated for 1 pass)
$!!identifier (for two passes, !!! for three, etc)

Re: How to NOT evalutate a code #82552 12/05/04 11:38 PM
Joined: Dec 2003
Posts: 199
K
Kriminal Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
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... ^


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
Re: How to NOT evalutate a code #82553 13/05/04 11:25 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
$!rgb $+ ( $+ $color($remove(%theme.color,)) $+ )


New username: hixxy
Re: How to NOT evalutate a code #82554 14/05/04 07:34 PM
Joined: Aug 2003
Posts: 325
W
Wolfie Offline
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
Code:
$!rgb(  $color($remove(%theme.color,)) )
that should work too. grin


Re: How to NOT evalutate a code #82555 15/05/04 05:34 AM
Joined: Dec 2003
Posts: 199
K
Kriminal Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
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?


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
Re: How to NOT evalutate a code #82556 15/05/04 05:52 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try just using $color($remove(%theme.color,))
That will return something like "8355711", which is what MDX expects.