It is currently August 9th, 2020, 8:58 am

QuotePlugin?

Help with creating, editing & fixing problems with skins
User avatar
wiedzmawiedzma
Posts: 112
Joined: August 18th, 2012, 5:19 pm

QuotePlugin?

Post by wiedzmawiedzma »

I use "QuotePlugin" in the skin slide show.
I wonder if when you change the wallpaper in the skin by "QuotePlugin" can be performed some action such as ( PLAY ) or ( ! HideGroup ) ?
User avatar
KreAch3R
Posts: 629
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: QuotePlugin?

Post by KreAch3R »

AFAIK, the Quote doesn't have an OnChangeAction, so what you say isn't possible, using the Quote plugin itself. You can setup a Calc counter though, with the same "UpdateDivider" as the Quote plugin, and get the job done, I suppose.

Code: Select all

[mQuote]
Measure=Plugin
Plugin=QuotePlugin
PathName=%HOMEDRIVE%%HOMEPATH%\My Documents\My Pictures\
Subfolders=1
FileFilter=*.jpg;*.gif
UpdateDivider=#UpdateDivider#

[mCounter]
Measure=CALC
Formula=(mCounter+1)%(#UpdateDivider#+1)
IfEqualValue=#UpdateDivider#
IfEqualAction=[!Redraw][!Bang here whatever you want]
I got some minor inconsistencies what that code, but it could be may PC. Try it to check if it does what you want.
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
thatsIch
Posts: 464
Joined: August 7th, 2012, 9:18 pm

Re: QuotePlugin?

Post by thatsIch »

Another Approach would be doing something like this

Code: Select all

LeftMouseUpAction = [!UpdateMeasure "MeasurePluginQuote"]
on the PLAY Button and with something like this

Code: Select all

[MeasurePluginQuote]
Measure = Plugin
Plugin = QuotePlugin
UpdateRate = -1
with UpdateRate = -1 it only updates on Refresh and if you update it via Bang
User avatar
wiedzmawiedzma
Posts: 112
Joined: August 18th, 2012, 5:19 pm

Re: QuotePlugin?

Post by wiedzmawiedzma »

KreAch3R wrote:I got some minor inconsistencies what that code, but it could be may PC. Try it to check if it does what you want.
With the help of your solution was up SlideShow with the effect of the slide.
I used to BitmapTransitionFrames and your Formula Calc.
The result looks good, but does nothing I can synchronize changes
pictures of enclosed slide. I've tried everything, even the number of frames, and calculate the duration. However, I noticed that when the UpdateDivider in [ImageMeterSlide] is higher than the one in UpdateDivider [Wall] or vice versa.
This gradually increases each update to the difference which should be 1 second. Update I set in 1000, and here I was very surprised.
If you see this can not be synchronized in some way?
At the bottom is the file rmskin this code to be able to see what and how.

Code: Select all

[Rainmeter]
Author=WiedzmaWiedzma
Update=20000
TransitionUpdate=50

[Variables]
UpdateDivider=1
ImagePath=#CURRENTPATH#DownloadFile\
SubFolders=0
FileFilter=*.jpg;*.jpeg;


[BG]
Meter=IMAGE
ImageName=bg.png
X=0
Y=0
UpdateDivider=-1


[mCounter]
Measure=CALC
Formula=(mCounter+1)%(#UpdateDivider#+1)
UpdateDivider=


[MeasureSlideShow]
Measure=Plugin
Plugin=QuotePlugin
PathName=#ImagePath#
FileFilter=#FileFilter#
Subfolders=#SubFolders#
Disabled=0
Substitute="#ImagePath#":"",".jpg":""
UpdateDivider=

[Wall]
Meter=IMAGE
ImageName=#ImagePath#[MeasureSlideShow].jpg
X=6
Y=4
W=460
H=224
PreserveAspectRatio=2
DynamicVariables=1
UpdateDivider=


[Logo]
Meter=IMAGE
ImageName=logo.png
X=12
Y=185
UpdateDivider=-1

[ImageMeterSlide]
Meter=Bitmap
MeasureName=mCounter
X=6
Y=4
BitmapImage=Slide.png
BitmapFrames=17
BitmapTransitionFrames=16
BitmapExtend=0
UpdateDivider=
You do not have the required permissions to view the files attached to this post.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 911
Joined: September 6th, 2011, 6:34 am

Re: QuotePlugin?

Post by MerlinTheRed »

You could try to write a Lua script that reads the folder contents and picks the appropriate image, toggles the transition etc. I think there is no function in standard Lua to get a list of directories so you'll have to do a little workaround and get the output of the "dir" command. I found this StackOverflow question which might help you: http://stackoverflow.com/questions/5303174/get-list-of-directory-in-a-lua
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
wiedzmawiedzma
Posts: 112
Joined: August 18th, 2012, 5:19 pm

Re: QuotePlugin?

Post by wiedzmawiedzma »

MerlinTheRed wrote:You could try to write a Lua script
When it comes to LUA threshold is too high for me! ;-)
User avatar
thatsIch
Posts: 464
Joined: August 7th, 2012, 9:18 pm

Re: QuotePlugin?

Post by thatsIch »

wiedzmawiedzma wrote: When it comes to LUA threshold is too high for me! ;-)
its easy
trust me

and google helps a lot cause its a really popular script language (most popular example would be World of Warcraft)
User avatar
wiedzmawiedzma
Posts: 112
Joined: August 18th, 2012, 5:19 pm

Re: QuotePlugin?

Post by wiedzmawiedzma »

I found this forum topic "Creating Independent Counters"
and I wonder if one could use this approach instead of LUA.
Does using update = 60000 for QuotePlugin
I am able, with the help of an independent meter half or 1 second before the display bitmap "BitmapTransitionFrames" ? :handtohead:
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4069
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: QuotePlugin?

Post by eclectic-tech »

I like what you are trying with this skin :)

Kaelri wrote an excellent universal transition script that may help you achieve the effect you want.

Trying to get a bitmap animation (slide change) to keep time with the quote plugin (wall update) is nearly impossible without lua...

So without having to actually program in lua, Kaelri's script may help you get the transition effect you are working on using 2 meters instead of bitmap animation.

I would like to see you succeed in getting a Bing images skin!
User avatar
wiedzmawiedzma
Posts: 112
Joined: August 18th, 2012, 5:19 pm

Re: QuotePlugin?

Post by wiedzmawiedzma »

eclectic-tech wrote:I like what you are trying with this skin :)

I would like to see you succeed in getting a Bing images skin!
I managed to solve the problem of synchronization!
Here you can see the effect :
My Gallery on DeviantArt : http://fav.me/d5ghjww
You do not have the required permissions to view the files attached to this post.