mak_kawa wrote: ↑
May 11th, 2020, 7:15 am
there is a option line AddLine=1
Originally, I wanted to print out one entire column of info (e.g. all email subjects, one under the other) with just one meter, which would be more compact. To print subjects from messages 0 through 2, one below the other, the syntax would be:
Code: Select all
The AddLine= is a remnant of this attempt: it would (optionally) print a separator line at the bottom of the column "-----------". This way I wouldn't need a separate Shape (Line) meter in the skin. The decision to print/not print the separator (if there are no messages) is much easier made in the plugin, rather than all the hiding / showing in the skin. In other words, instead of multiple calls to the plugin + a separate Line meter + separator management, all would be done in one go in the plugin.
Why this doesn't work is two-fold:
1) Rainmeter doesn't seem to respect newline characters in a string: it won't print a column of strings, one under the other
2) Rainmeter parses a formula only once. Even if my plugin spits out #CRFL or [\13][\10] as part of its output, it's too late, the section variable has already been parsed (once), so you'll just get these strings literally in the output, not separate lines.
This is why the demo string has the #CRFL# right in the Text= option, between two separate calls to the plugin.