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

Help: Rainmeter Skins • Re: WebParser? Name in the Download?

$
0
0
Something like this, maybe?

Code:

[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1[Variables];Item=.*<url>(.*)</url>.*<copyright>(.*)</copyright>.*<headline>(.*)</headline>.*;;=======================================================================================================[MeasureDate]Measure=TimeFormat=%d.%m.%Y[MeasureDA]Measure=WebParserRegExp=(?siU)#Item#UpdateRate=-1FinishAction=[!EnableMeasure Download_Image][!CommandMeasure Download_Image "Update"][Download_Link]Measure=WebParserUrl=[MeasureDA]StringIndex=1[Download_Title]Measure=WebParserUrl=[MeasureDA]StringIndex=3[Download_Image]Disabled=1Measure=WebParserUrl=http://www.bing.com[&Download_Link]StringIndex=1UpdateRate=-1Download=1DownloadFile=bingwallpaper-[Download_Title].pngFinishAction=[!SetWallpaper "#CURRENTPATH#\DownloadFile\bingwallpaper-[Download_Title].png" Fill][!UpdateMeter *][!Redraw]DynamicVariables=1;=======================================================[!Bing_Icon]Meter=ImageImageName=#@#bing.pngX=#WindowX#Y=#WindowY#W=50H=50AntiAlias=1UpdateDivider=-1LeftMouseUpAction=[!CommandMeasure MeasureDA "Update"]MiddleMouseUpAction=["#CURRENTPATH#\DownloadFile"]ToolTipText=Aktuallisieren;;[String_!Bing_Wallpaper]Meter=StringFontFace=ArialFontStyle=BOLDFontSize=22FontColor=255,255,255,255InlineSetting=Shadow | 1 | 1 | 2.5 | 0,0,0,255X=10RY=-5rUpdateDivider=-1Text=!Bing - WallpaperAntiAlias=1;;[MeterString_Title]Meter=StringMeasureName=Download_TitleFontFace=ArialFontStyle=BOLDFontSize=12FontColor=255,255,255,255InlineSetting=Shadow | 1 | 1 | 2.5 | 0,0,0,255SolidColor=100,100,100,150X=-220RY=2RText=%1AntiAlias=1UpdateDivider=-1DynamicVariables=1;===================================================
This uses the classic Update=1000 and UpdateRates / UpdateDividers of -1, since Update=-1 doesn't play nice with WebParser in this case. [Download_Image] initially starts disabled, being enabled and commanded to retrieve data from the FinishAction of [MeasureDA], once the latter has its own data available. It uses the proper WebParser measure references and built-in variables in [Download_Image] and [!Bing_Icon].

P.S. Because [Download_Image] starts disabled and is enabled only when [MeasureDA] gets the data needed to use [Download_Image] in the first place, setting the wallpaper will have a slight delay.
Awesome! You are my Hero! :lol: :thumbup: Thank you :rosegift:
Also Thanks to balala :rosegift:

Statistics: Posted by Rooky_89 — Today, 8:25 pm



Viewing all articles
Browse latest Browse all 1564

Trending Articles