Page 2 of 2

Re: Quote Plugin with mouseaction to select a static image in a separate Skin?

Posted: July 11th, 2017, 2:35 pm
by jsmorley
The fact that you are spelling "favorite" as "favourite" concerns me, as I suspect we are talking past each other as examples fly back and forth... Get over your Aussie fixation on extra "u's" in everything... It's "color" damnit, live with it... Bad enough that you drive on the wrong side of the road... ;-)

The important thing is to understand how all this is meant to work...

Let's start from scratch with an example .rmskin I created.
SlideShowAndFavorite_1.0.rmskin
So what that has is a setup like this:
1.png
I have a root config folder called SlideShowAndFavorite, and under that two folders, SlideShow and Favorite. In each of those is a skin, SlideShow.ini and Favorite.ini. Hopefully which is which is evident from the names...

So in SlideShow.ini I have:

Code: Select all

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

[MeasureRandomImage]
Measure=Plugin
Plugin=QuotePlugin
PathName=C:\Users\Jeffrey\Wallpaper
FileFilter=*.jpg;*.png;*.gif
UpdateDivider=10

[MeterRandomImage]
Meter=Image
MeasureName=MeasureRandomImage
W=300
PreserveAspectRatio=1
LeftMouseUpAction=[!WriteKeyValue "MeterFavorite" "ImageName" "[MeasureRandomImage]" "#SKINSPATH#\SlideShowAndFavorite\Favorite\Favorite.ini"][!Refresh "SlideShowAndFavorite\Favorite"]
That will simply get a random image from my Wallpaper folder, and display it.

Then the LeftMouseUpAction does the following:
Write to the [SectionName] "MeterFavorite", setting the option "ImageName", with the value from "[MeasureRandomImage]". I will write that to the file "#SKINSPATH#\SlideShowAndFavorite\Favorite\Favorite.ini".

Then !Refresh the config "SlideShowAndFavorite\Favorite", so it re-reads it's own .ini file, and sees the new value we set for ImageName on the meter [MeterFavorite].
In Favorite.ini I have:

Code: Select all

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

[MeterFavorite]
Meter=Image
ImageName=C:\Users\Jeffrey\Wallpaper\SomeStartingImage.jpg
MaskImageName=#@#Masks\Puzzle.png
W=300
PreserveAspectRatio=1
I am using this as my MaskImageName:
Puzzle.png
And I get this. Click to animate:
gif.gif

Re: Quote Plugin with mouseaction to select a static image in a separate Skin?

Posted: July 11th, 2017, 9:26 pm
by Mor3bane
But, but, my browser says I am spelling things wrong then! :P

Thank you for your time jsmorley, I really appreciate it, :thumbup:

I only have time this morning to reply with my thanks.

Cheers

Re: Quote Plugin with mouseaction to select a static image in a separate Skin?

Posted: July 12th, 2017, 7:55 am
by Mor3bane
Got it working!

Thank You jsmorley :rosegift:

It seems the path names were my primary issue, and a couple UpdateDivider bugs - but all perfecto now.

Cheers,
Mor

Re: Quote Plugin with mouseaction to select a static image in a separate Skin? [solved]

Posted: July 12th, 2017, 10:16 am
by jsmorley
Great! Glad to help.