display mzscript %{var} in xlabel Thread last updated on 2006-03-25 01:24:26

Posted by member 280260 on 2006-03-23 23:37:28

Will the [exportedevar] escape do the job?

Posted by member 212670 on 2006-03-24 00:21:00 link

You could setup a timer to do it, using the timer module, and have a *Script exec !LabelSetText Label %{var}

To answer the question... don't think so. Someone may have a better answer, though. =)

Posted by member 1 on 2006-03-24 00:48:48 link

Can't xLabel read lines of text from a text file and display them? If you have mzScript autosaving your variables then you could just do it that way.

Posted by member 212670 on 2006-03-24 04:22:24 link

It does, but I think it'd still need an event to update. Worth a shot, though.

There is that module that monitors file changes... but I can't think of its name at the moment.

Posted by member 1 on 2006-03-24 13:41:07 link

couldn't you just tell the xLabel to update every 5 minutes?

Posted by member 212670 on 2006-03-24 14:35:14 link

Yup, DeV, right you are. Had a closer look, and there's an UpdateAlways option, which you can set an update interval for. I did a quick test, and it works like a charm.

The thing that threw me off is that the readme says to use AutoRecycle-1.0 for "interactive/automatically usage of the Text Extraction Escape Sequences," so that's kind of misleading. Much better just to set UpdateAlways instead of loading another module which probably uses its own update interval, and by the looks of its readme, actually recycles litestep. >.<

Anyway, there's your answer, jqubit. :D

Posted by member 280260 on 2006-03-24 23:52:41 link

Thanks for the responses.

Doesn't updateAlways use a crapload more memory?

Posted by member 212670 on 2006-03-25 01:24:26 link

I only checked cpu usage when I tested it out. Didn't hurt that at all. I don't imagine it would really touch much memory, unless there was a weird leak or something.