Image may be NSFW. Clik here to view. I just did it easily, from the other topic, copy + paste + adjust = works Image may be NSFW. Clik here to view.
I find RegExp to be a different topic that requires some time to get used to. (how does it works etc.) Just programming in Rainmeter offers so many possibilities. The more you try, the more new things you discover. Image may be NSFW. Clik here to view. The will is there but, the time isnt there.
Another question: If I want to trigger the web parser to update via the text field input, should I do this using [!CommandMeasure Youtuber_1 "Update"]? Unfortunately, the web parser doesn't start. Only when I right-click "Update Skin" does it work properly that the new YouTube URL is loaded or retrieved. Image may be NSFW. Clik here to view.Image may be NSFW. Clik here to view.
Code-Snipped:
Code:
----------------Grabs the Uploades Videos[Youtuber_1]Measure=WebParserURL=[#YT1_URL]UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36Flags=ForceReload | NoCookiesRegExp=(?siU)(?|.*"contentMetadataViewModel":.*?"metadataParts".*"text":.*"content":.*"(\d+) .*"|.*?"subscriberCountText":.*"[^"]*text":"(\d+) .*")StringIndex=1UpdateRate=1800FinishAction=[!EnableMeasure AvatarYT1][!EnableMeasure Calc_YT1][!UpdateMeasure Calc_YT1]----------------Download the Youtube Avatar Image[AvatarYT1]Measure=WebParserURL=[#YT1_URL]UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36Flags=ForceReload | NoCookiesRegExp=(?siU)<meta property="og:image" content="(.*)"UpdateRate=1800StringIndex=1Disabled=1Download=1DownloadFile="AvatarYT1.jpg"DynamicVariables=1FinishAction=[!SetVariable YT1_ICO "DownloadFile\AvatarYT1.jpg"][!WriteKeyValue Variables YT1_ICO "DownloadFile\AvatarYT1.jpg"][!UpdateMeter YT1_ICO][!Redraw]----------------Compares whether a new video has been uploaded[Calc_YT1]Disabled=1Measure=CalcFormula=[&Youtuber_1]UpdateDivider=-1IfCondition=(#CURRENTSECTION#>#YT1_Video#)IfTrueAction=[!ShowMeter Notification_ICO][!SetOption Message_YT1 Text "+1"][!UpdateMeter Message_YT1][!Redraw]DynamicVariables=1Disabled=1----------------Textfield Input, for new Youtube Chanel URL[InputURL]Group=SETTINGSYTMeasure=PluginPlugin=InputTextX=(75*#ScaleX#)Y=(4*#ScaleY#)W=(218*#ScaleX#)H=(16*#ScaleY#)FontSize=(#FontSize10#*Min(#ScaleX#,#ScaleY#))FontColor=255,255,255,255SolidColor=40,40,40,255AntiAlias=1FocusDismiss=1Command1=[!SetVariable YT[#ItemIndex]_URL "$UserInput$"][!WriteKeyValue Variables YT[#ItemIndex]_URL "[InputURL]"] DefaultValue=[#YT#ItemIndex#_URL]Command2=[!SetVariable InputTextInto "0][!CommandMeasure Youtuber_[#ItemIndex] "Update"]OnDismissAction=[!SetVariable InputTextInto "0"]DynamicVariables=1Hidden=1