It is currently March 28th, 2024, 5:49 pm

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

Get help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post 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
(9.86 KiB) Downloaded 13 times
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
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am
Contact:

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

Post 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
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am
Contact:

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

Post 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
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post by jsmorley »

Great! Glad to help.
Post Reply