Code: Select all
[mImage]
Measure=Plugin
Plugin=QuotePlugin.dll
PathName=#ImagePath#
Subfolders=1
FileFilter=*.jpg
UpdateDivider=3600
[Image]
Meter=IMAGE
MeasureName=mImage
[ImageLocation]
Meter=STRING
MeasureName=mImage
Any help is appreciated!
Code: Select all
[mImage]
Measure=Plugin
Plugin=QuotePlugin.dll
PathName=#ImagePath#
Subfolders=1
FileFilter=*.jpg
UpdateDivider=3600
[Image]
Meter=IMAGE
MeasureName=mImage
[ImageLocation]
Meter=STRING
MeasureName=mImage
REALLY easy, you say? Do you mind demonstrating? I don't know a thing about Lua, unfortunately... but I learn fast from tearing apart other people's codesanta_ryan wrote:The only way that i know of doing this is from Lua. It is REALLY easy in lua.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
ImagePath=C:\Users\Jeffrey Morley\Wallpaper
CurrentImage=""
[mImage]
Measure=Plugin
Plugin=QuotePlugin.dll
PathName="#ImagePath#"
Subfolders=1
FileFilter=*.jpg
UpdateDivider=3600
[MeasureSetVar]
Measure=Calc
Formula=Counter %3601
IfEqualValue=0
IfEqualAction=!RainmeterSetVariable CurrentImage "[mImage]"
DynamicVariables=1
[Image]
Meter=IMAGE
MeasureName=mImage
W=300
PreserveAspectRatio=1
[ImageLocation]
Meter=STRING
Y=R
FontSize=11
FontColor=255,255,255,255
MeasureName=mImage
[ImageLocation2]
Meter=STRING
Y=R
FontSize=11
FontColor=255,255,255,255
Text=#CurrentImage#
DynamicVariables=1
This works fantastically! Quick question, though. When the variable CurrentImage is set, where is it actually written? Is there a temporary cache?jsmorley wrote:Code: Select all
[Rainmeter] Update=1000 DynamicWindowSize=1 [Variables] ImagePath=C:\Users\Jeffrey Morley\Wallpaper CurrentImage="" [mImage] Measure=Plugin Plugin=QuotePlugin.dll PathName="#ImagePath#" Subfolders=1 FileFilter=*.jpg UpdateDivider=3600 [MeasureSetVar] Measure=Calc Formula=Counter %3601 IfEqualValue=0 IfEqualAction=!RainmeterSetVariable CurrentImage "[mImage]" DynamicVariables=1 [Image] Meter=IMAGE MeasureName=mImage W=300 PreserveAspectRatio=1 [ImageLocation] Meter=STRING Y=R FontSize=11 FontColor=255,255,255,255 MeasureName=mImage [ImageLocation2] Meter=STRING Y=R FontSize=11 FontColor=255,255,255,255 Text=#CurrentImage# DynamicVariables=1
Brilliant! Works! Why can't I ever get this stuff to work when I do it myself??? I think I either didn't put quotes and brackets around the measurename, or who knows... syntax syntax syntax.jsmorley wrote:Variables are not "written" anywhere if they are changed in memory with !RainmeterSetVariable. However, you can change it to add writing it to file as well, so you can then parse for it with WebParser.
IfEqualAction=!Execute [!RainmeterSetVariable CurrentImage "[mImage]"][!RainmeterWriteKeyValue Variables CurrentImage "[mImage]" "#CURRENTPATH#Variables.inc"]