Below is my current code:
Code: Select all
[Rainmeter]
Update=40
AccurateText=1
[Variables]
GifFolder=blade_runner_car\
GifExtension=.gif
ArrowHeightMultuplier=2.5
;Counts gif snapshots
[ImageNumberCalc]
Measure=Calc
Formula=Counter % GifFolderImageCountSection
;Counts all gif parent folders
[GifFolderCountSection]
Measure=Plugin
Plugin=FolderInfo
Folder=#@#
InfoType=FolderCount
IncludeSubFolders=1
UpdateDivider=100
;Counts all gif images within gif folder
[GifFolderImageCountSection]
Measure=Plugin
Plugin=FolderInfo
Folder=#@#gifs\#GifFolder#
InfoType=FileCount
UpdateDivider=10
[GifSlideShow]
Meter=Image
ImagePath=#@#gifs\
ImageName=#GifFolder#frame_[ImageNumberCalc]#GifExtension#
AntiAlias=1
DynamicVariables=1
W=800
H=400
PreserveAspectRatio=1
;TODO: add all states and click action
[GifSlideShowArrowLeft]
Meter=Button
X=0
Y=([GifSlideShow:H] / #ArrowHeightMultuplier#)
ImagePath=#@#icons\
ButtonImage=arrow_left.png
ButtonCommand=
;TODO: add all states and click action
[GifSlideShowArrowRight]
Meter=Button
X=([GifSlideShow:W] - 60)
Y=([GifSlideShow:H] / #ArrowHeightMultuplier#)
ImagePath=#@#icons\
ButtonImage=arrow_right.png
ButtonCommand=["SomeCommand"]
[GifSlideshowNextScript]
Measure=Script
ScriptFile=testScript.lua
CurrentFolder=#GifFolder#
FolderCount=[GifFolderCountSection]
Test=#@#gifs\
My approach to this has been to get the current folder name/pos and get a count of all other folders and somehow increment a variable to contain the existing position of the master gif folder from within the images lie.
I initially tried to init the variable with reference to the measure but it always returns 0, I guess you cannot init variables with measures? So i need a way of calling the measure and storing the return in a variable so I can pick the next folder of images when the arrow is clicked.
Also any advice on how to better create a gif slideshow or general code comments are appreciated.