If it's not possible using the plugins I've mentioned, it seems like it might be worth it to add the RegExp function to the Quotes plugin to be run on each line (or whatever block of text is queried between the separator each time). In other words, add functionality so that the substrings can be referred to as %1, %2, %3, etc. just like with RegExp.
Here's the code that I have so far. I'll also attach a screenshot that shows it as far as I've taken it. Note the —%2 is where I'm trying place the author's name as it's kind of dark.
Code: Select all
[Rainmeter] Update=1000 DynamicWindowSize=1 [Metadata] Name=Quotations Description=Cycles through a list of quotations from a text file and displays them one at a time. Version=1.0.0 [Variables] Seconds=5 Font=Calibri [MeasureQuotation] Measure=Plugin Plugin=Plugins\QuotePlugin.dll PathName=#CURRENTPATH#quotes.txt UpdateDivider=#Seconds# [QuotationText] Meter=String MeasureName=MeasureQuotation MeterStyle=QuotationStyle Text=%1 X=400 Y=400 W=800 H=200 [QuotationAuthor] Meter=String MeasureName=MeasureQuotation MeterStyle=AuthorStyle Text=%2 X=400 Y=450 W=800 H=200 [QuotationStyle] FontColor=255,255,255,255 FontSize=30 StringAlign=CENTER StringEffect=SHADOW FontEffectColor=255,255,255,128 FontFace=#Font# Antialias=1 ClipString=1 Prefix=" Postfix=" [AuthorStyle] FontColor=0,0,0,204 FontSize=15 StringAlign=CENTER StringStyle=BOLD StringCase=UPPER StringEffect=SHADOW FontEffectColor=255,255,255,128 FontFace=#Font# Antialias=1 ClipString=1 Prefix=—
The text file I'm drawing from is just three lines for testing.
Code: Select all
This is CNN. -Wolf Blitzer We're done here. -Cave Johnson I'm on a horse. -Old Spice Guy