mzScript and Vars Thread last updated on 2004-01-05 22:33:15

Posted by member 17071 on 2004-01-05 18:53:44

i'm working on my theme and a dynamic systray is in my plans, but i can't get the code to work. I've narrowed it down to the fact that i can't define variables for it to use. i've seen two ways to define the variables that i need:

*Script exec !varSet TrayHeight 105
*Script exec !varSet TrayPos -125


and

*Script var TrayHeight 105
*Script var TrayPos -125


but neither of those work, it always says that the variable is undefined. is there something i'm missing? i checked the mzScript docs and it doesn't even tell you how to define a variable. can someone PLEASE help me out on this, its the last part of my theme that i gotta get to work.

Posted by member 36955 on 2004-01-05 20:38:59 link

well, this depends on which version of mzscript you are using. to get the effect you are looking for, you need to use a newer version of mzscript, which defines variables like this:
TrayHeight 105
TrayPos -125

in its own separate file, which you would designate by a *mzVarFile line. to get the systray to recognize the variables as evars ($$ variables) as well as mzvars, you will need to put an include line for the varfile in as well.

Posted by member 17071 on 2004-01-05 22:05:08 link

ok, so i made it use the newest mzScript i could find its mzscript-0.9_beta-11-jam3 and i defined the *mzVarFile and everything, putting the vars into that file... but it still says that the vars are undefined.

i don't get what i'm missing, i compared it to some other theme and it looks almost exactly like that. am i still missing something?

Posted by member 17071 on 2004-01-05 22:33:15 link

heh, nevermind i got it to work