mIRC Homepage
Posted By: sparta explain this to me - 14/10/08 08:52 PM
I do:

//echo -a $+($iconpath,%theme.cdelimiter,.jpg)

I get the answer:

I:\New test\scripts\images\icons\14.jpg

i test this line in the dialog:

icon 46, 39 14 10 10, $mircdirscripts\images\icons\14.jpg

that line working, now i test this line:

icon 46, 39 14 10 10, $+($iconpath,%theme.cdelimiter,.jpg)

and i get the error

* /dialog: 'theme' invalid table, in 'icon' 46 (line 32, theme.mrc)

how come? the path is right, the 14.jpg file are the same as when i wrote out the path, the $iconpath return $mircdirscripts\images\icons\ . and the %theme.cdelimiter return 14 , and i add the .jpg to the end, so shouldent be a problem there, someone that care to explain?
Posted By: RusselB Re: explain this to me - 14/10/08 11:10 PM
The problem is with the commas that are in the $+($iconpatch,%theme.cdelimiter,.jpg)

mIRC's dialog 'section' sees each of those extra commas and doesn't know what to do with them.

I don't know why this is, so you might want to report it as a bug.

Regretfully I recently lost all of my dialog codes that contained references like this in order for me to copy & paste what I was using as a solution.
Posted By: Horstl Re: explain this to me - 14/10/08 11:20 PM
A custom identifier will work:

icon 46, 39 14 10 10, $dialog.icon
...
alias -l dialog.icon { return $+($iconpath,%theme.cdelimiter,.jpg) }

Or you sticking the parts together with A $+ B $+ C instead of $+(A,B,C):

icon 46, 39 14 10 10, $iconpath $+ %theme.cdelimiter $+ .jpg

EDIT: err, use the first sollution. the second will set (change) the %theme.cdelimiter variable on dialog close
Posted By: sparta Re: explain this to me - 15/10/08 08:21 AM
i noticed the second one didnt do like i wanted it to wink but it's strange how the same output (the lines look absolutely the same) don't do the same thing in the dialog. =)
© mIRC Discussion Forums