It is currently April 23rd, 2024, 11:17 pm

Converting Generic Text to a Time

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Converting Generic Text to a Time

Post by balala »

Docta wrote:I did earlier, here it is again. I think, from what you said earlier, that the plugin portion is completely unnecessary for what I'm trying to accomplish.
I meant the whole code, not just a measure and the appropriate meter. I suppose you have more than what you've posted. I'd need the WebParser plugin measures and everything you have there, please.
Docta
Posts: 8
Joined: November 26th, 2016, 4:16 am

Re: Converting Generic Text to a Time

Post by Docta »

That is all the code. The web parser plugin is 3rd party and downloads images and text files, it has nothing to do with rainmeter specifically. I just need my skin to change images whenever a new image is downloaded from the plugin.


Here is the plugin, if you still need it: https://github.com/Wykks/Untamed-Now-Playing-Next/
It works for firefox (but there might be a Chrome version, I'm not sure).
Docta
Posts: 8
Joined: November 26th, 2016, 4:16 am

Re: Converting Generic Text to a Time

Post by Docta »

I just fixed my issue. I wasn't connecting the MeasurePlugin to my ImageMeter. The following code works perfectly:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1

[MeasureMyPictures]
Measure=Plugin
Plugin=QuotePlugin
PathName=C:\Users\Docta\Documents\Rainmeter
Subfolders=0
FileFilter=*.jpg;
UpdateDivider=10

[MeterShowPicture]
Meter=Image
MeasureName=MeasureMyPictures
W=100
H=100
PreserveAspectRatio=1
LeftMouseUpAction=[!Refresh]
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Converting Generic Text to a Time

Post by balala »

Docta wrote:I just fixed my issue. I wasn't connecting the MeasurePlugin to my ImageMeter. The following code works perfectly:
I suppose the Firefox plugin downloads the image in the C:\Users\Docta\Documents\Rainmeter folder and probably this is the only image in that folder, so the Quote plugin chooses it on each update. If it's changing (because the plugin downloads another image), after a while (up to 10 update cycles), the new image will be shown.
If I'm right, this is an interesting and ingenious approach. Congratulations.
Docta
Posts: 8
Joined: November 26th, 2016, 4:16 am

Re: Converting Generic Text to a Time

Post by Docta »

Yup, that is how it works. Thanks for the help :)
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Converting Generic Text to a Time

Post by balala »

Glad to help.