Page 1 of 2

QuotePlugin?

Posted: September 12th, 2012, 10:53 pm
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 ) ?

Re: QuotePlugin?

Posted: September 13th, 2012, 7:02 am
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.

Re: QuotePlugin?

Posted: September 13th, 2012, 10:48 am
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

Re: QuotePlugin?

Posted: September 13th, 2012, 11:39 pm
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=

Re: QuotePlugin?

Posted: September 14th, 2012, 7:22 am
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

Re: QuotePlugin?

Posted: September 14th, 2012, 10:30 am
by wiedzmawiedzma
MerlinTheRed wrote:You could try to write a Lua script
When it comes to LUA threshold is too high for me! ;-)

Re: QuotePlugin?

Posted: September 14th, 2012, 3:34 pm
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)

Re: QuotePlugin?

Posted: September 15th, 2012, 10:30 pm
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:

Re: QuotePlugin?

Posted: September 16th, 2012, 3:30 am
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!

Re: QuotePlugin?

Posted: September 30th, 2012, 7:28 pm
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