Re: Quote Plugin with mouseaction to select a static image in a separate Skin?
Posted: July 11th, 2017, 2:35 pm
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.
So what that has is a setup like this:
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:
That will simply get a random image from my Wallpaper folder, and display it.
Then the LeftMouseUpAction does the following:
I am using this as my MaskImageName:
And I get this. Click to animate:
The important thing is to understand how all this is meant to work...
Let's start from scratch with an example .rmskin I created.
So what that has is a setup like this:
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"]
Then the LeftMouseUpAction does the following:
In Favorite.ini I have: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].
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