Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1538

Help: Rainmeter Skins • Re: Impossible to display on my desktop (Windows 11) an image, last update on this site, that I want with a frame.

$
0
0
Here my actual code skin for vintag,es :
[...]
Do you understanding something, you ? Me no !
Well, since your code didn't really have all the needed pieces and I'm more of a "this is how you do it from start to finish" guy, rather than a "this is how you fix all things in your skin" one anyway, I took the liberty of doing just that, in a short and simple sample:

Code:

[Variables]Entry=(?(?=.*<entry>).*<entry>(.*)</entry>)Title=(?(?=.*<title .*>).*<title .*>(.*)</title>)Src=(?(?=.*src=&quot;).*src=&quot;(.*)&quot;)Name=(?(?=.*<name>).*<name>(.*)</name>)[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1BackgroundMode=2SolidColor=0,0,0,64---Measures---[VintageEveryday]Measure=WebParserURL=https://feeds.feedburner.com/vintageeverydayUserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36 Edg/92.0.902.84RegExp=(?siU)#Entry##Entry##Entry##Entry##Entry##Entry##Entry##Entry##Entry##Entry#UpdateRate=-1FinishAction=[!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw][Entry1]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=1UpdateDivider=-1[Entry1Title]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=1RegExp=(?siU)#Title#StringIndex2=1UpdateDivider=-1[Entry1Name]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=1RegExp=(?siU)#Name#StringIndex2=1UpdateDivider=-1[Entry1Src1]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=1RegExp=(?siU)#Src##Src##Src##Src##Src##Src##Src##Src##Src##Src#StringIndex2=1Download=1UpdateDivider=-1[Entry1Src2]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=1RegExp=(?siU)#Src##Src##Src##Src##Src##Src##Src##Src##Src##Src#StringIndex2=2Download=1UpdateDivider=-1[Entry1Src3]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=1RegExp=(?siU)#Src##Src##Src##Src##Src##Src##Src##Src##Src##Src#StringIndex2=3Download=1UpdateDivider=-1[Entry2]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=2UpdateDivider=-1[Entry2Title]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=2RegExp=(?siU)#Title#StringIndex2=1UpdateDivider=-1[Entry2Name]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=2RegExp=(?siU)#Name#StringIndex2=1UpdateDivider=-1[Entry2Src1]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=2RegExp=(?siU)#Src##Src##Src##Src##Src##Src##Src##Src##Src##Src#StringIndex2=1Download=1UpdateDivider=-1[Entry2Src2]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=2RegExp=(?siU)#Src##Src##Src##Src##Src##Src##Src##Src##Src##Src#StringIndex2=2Download=1UpdateDivider=-1[Entry2Src3]Group=ChildrenMeasure=WebParserURL=[VintageEveryday]StringIndex=2RegExp=(?siU)#Src##Src##Src##Src##Src##Src##Src##Src##Src##Src#StringIndex2=3Download=1UpdateDivider=-1---Styles---[Texts]X=252Y=5RW=505FontFace=Monotype CorsivaFontColor=255,255,255,255FontSize=12StringAlign=CenterAntiAlias=1ClipString=2InlineSetting=Size | 10InlinePattern=(?siU)^.*\R(.*)$[Images]X=5RY=0rW=45---Meters---[VintageEverydayText]Meter=StringMeterStyle=TextsY=5rFontSize=14FontWeight=700Text=VintageEveryday[Entry1DetailsText]Meter=StringMeterStyle=TextsMeasureName=Entry1TitleMeasureName2=Entry1NameText=%1#CRLF#by %2[Entry1Src1Image]Meter=ImageMeterStyle=ImagesX=5Y=5RMeasureName=Entry1Src1[Entry1Src2Image]Meter=ImageMeterStyle=ImagesMeasureName=Entry1Src2[Entry1Src3Image]Meter=ImageMeterStyle=ImagesMeasureName=Entry1Src3[Entry2DetailsText]Meter=StringMeterStyle=TextsMeasureName=Entry2TitleMeasureName2=Entry2NameText=%1#CRLF#by %2[Entry2Src1Image]Meter=ImageMeterStyle=ImagesX=5Y=5RMeasureName=Entry2Src1[Entry2Src2Image]Meter=ImageMeterStyle=ImagesMeasureName=Entry2Src2[Entry2Src3Image]Meter=ImageMeterStyle=ImagesMeasureName=Entry2Src3
VintageEveryday.jpg
Basically, I stored the regex patterns for the relevant tags in variables, then used as many of them as desired along with StringIndex / StringIndex2 in the WebParser measures to display a few results and illustrate the approach. Tag contents from only 2 entries and 3 srcs are displayed in a smaller fashion to keep this compact, but I added 10 potential entries and 10 potential srcs that can be retrieved - feel free to adjust or use things as needed from the code, and let me know if you have any questions about it.

In case it helps, here are some tutorials and explanations about this type of approach (the last two are the key things above):
https://docs.rainmeter.net/tips/rss-feed-tutorial/
https://docs.rainmeter.net/tips/webparser-lookahead-assertions-in-regexp/
https://docs.rainmeter.net/tips/webparser-using-stringindex2/

Also used:
https://docs.rainmeter.net/manual/meters/general-options/meterstyles/
https://docs.rainmeter.net/manual/variables/

Statistics: Posted by Yincognito — Today, 3:45 pm



Viewing all articles
Browse latest Browse all 1538

Trending Articles