mIRC Home    About    Download    Register    News    Help

Print Thread
#205162 14/10/08 08:52 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
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

Last edited by Horstl; 14/10/08 11:25 PM.
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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. =)


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard