It is currently April 23rd, 2024, 2:27 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: 22629
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
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
You do not have the required permissions to view the files attached to this post.
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

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
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

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
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
User avatar
jsmorley
Developer
Posts: 22629
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.