No, [LinkForPost1] is not a "parent" measure, and [ToolTipForPost1] can't be a "child" of it. [LinkForPost1] is a "child" of [ParentPost].
A parent measure will always have a RegExp that (captures) one or more bits of data.
When you use a URL=[SomeMeasure] in WebParser, that is specifically saying to use [SomeMeasure] as the "parent" for this measure, and then you use StringIndex to tell the child which bit of data from the one or more (captures) you have in the RegExp in the parent.
What you are trying to do is to use the data returned by a child measure, [linkForPost1] as the URL in a brand-new "parent" measure. The only way to do that is to use it as a section variable, and with WebParser, that is done by prefixing the name of the measure with
&. It is the same as the the "nested" variant of a measure section variable.
Now in this case, just to make things a little cloudy for you, we can have [ToolTipForPost1] be both a "parent", in that it has a URL and a RegExp that (captures) data, AND a "child", in that it has a StringIndex. In that sense, it is a child of itself.
That way, since it only returns one (capture), we can just use it in the meter to display the value.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
ParentURL=file://C:\Users\Jeffrey\Documents\Rainmeter\Skins\@Working\Test1.html
ParentRegExp=(?siU)<item>(.*)</item>
[ParentPost]
Measure=Plugin
Plugin=WebParser
URL=#ParentURL#
RegExp=#ParentRegExp#
DynamicVariables=1
[LinkForPost1]
Measure=Plugin
Plugin=WebParser
URL=[ParentPost]
StringIndex=1
DynamicVariables=1
[ToolTipForPost1]
Measure=Plugin
Plugin=WebParser
URL=[&LinkForPost1]
RegExp=(?siU)<p>(.*)</p>.*
StringIndex=1
DynamicVariables=1
[MeterOne]
Meter=String
MeasureName=ToolTipForPost1
FontSize=15
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Test1.html:
Code: Select all
<item>file://C:\Users\Jeffrey\Documents\Rainmeter\Skins\@Working\Test2.html</item>
Test2.html:
1.png
P.S. You won't find <br /> in any actual string value, as if you think about it, that can't be displayed as a literal in HTML, it will always be converted to a line break when rendered. If someone wanted some text that contained that HTML tag as literal text, followed by an actual line break, as in
You do a line break in HTML with the <br /> tag
You might see:
You do a line break in HTML with the <br /> tag<br />
With the characters that would normally confuse HTML encoded as Character References. There are other ways using CDATA and such, but they are less common.
You do not have the required permissions to view the files attached to this post.