Recursive=0
No recursion into sub-folders is done at all
Recursive=1
The plugin searches all sub-folders updating only the file count, folder count and overall folder size. This option does not index specific files in sub-folders.
Recursive=2
The plugin indexes all files in the folder tree defined in Path. Folders are not indexed. Plugin commands FollowPath and PreviousFolder are disabled, and ShowFile, ShowFolder, and ShowDotDot options have no effect. WildcardSearch will only work if the file is found in a folder that also matches the pattern.
Recursive=2 is quite handy to duplicate the Quote plugin, which can return a random image from any folder or tree of folders. The advantage to using FileView for this is that quite a bit more information about the file can be obtained and used at the same time.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
MyPath="C:\Users\Jeffrey\Pictures"
SecondsBetween=15
[MeasureFolder]
Measure=Plugin
Plugin=FileView
Recursive=2
Path=#MyPath#
Extensions=png;jpg;bmp
FinishAction=[!EnableMeasure MeasureCurrentIndex][!ShowMeterGroup AllMeters]
[MeasureCount]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileCount
[MeasureCurrentIndex]
Measure=Calc
Formula=Random
UpdateRandom=1
HighBound=[MeasureCount:0]
LowBound=1
UpdateDivider=#SecondsBetween#
DynamicVariables=1
Disabled=1
[MeasureImageFileSpec]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
IgnoreCount=1
Index=[MeasureCurrentIndex]
DynamicVariables=1
[MeasureImagePath]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FilePath
IgnoreCount=1
Index=[MeasureCurrentIndex]
DynamicVariables=1
RegExpSubstitute=1
Substitute="^(.+)\\([^\\]+)$":"\1"
[MeasureImageName]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
IgnoreCount=1
Index=[MeasureCurrentIndex]
DynamicVariables=1
[MeasureImageSize]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileSize
IgnoreCount=1
Index=[MeasureCurrentIndex]
DynamicVariables=1
[MeasureImageDate]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileDate
IgnoreCount=1
Index=[MeasureCurrentIndex]
DynamicVariables=1
[MeterBackground]
Meter=Image
Group=AllMeters
W=210
H=228
SolidColor=50,50,50,255
Hidden=1
[MeterImage]
Meter=Image
Group=AllMeters
MeasureName=MeasureImageFileSpec
X=5
Y=5
W=200
H=125
PreserveAspectRatio=2
LeftMouseUpAction=["[MeasureImageFileSpec]"]
DynamicVariables=1
Hidden=1
[MeterName]
Meter=String
Group=AllMeters
MeasureName=MeasureImageName
X=5
Y=5R
W=200
H=18
FontFace=Segoe UI
FontSize=10
FontColor=255,255,255,255
StringStyle=Bold
ClipString=1
AntiAlias=1
Hidden=1
[MeterPath]
Meter=String
Group=AllMeters
MeasureName=MeasureImagePath
X=5
Y=R
W=200
H=36
FontFace=Segoe UI
FontSize=10
FontColor=255,255,255,255
StringStyle=Bold
ClipString=1
AntiAlias=1
Hidden=1
[MeterSize]
Meter=String
Group=AllMeters
MeasureName=MeasureImageSize
X=5
Y=R
W=200
H=18
FontFace=Segoe UI
FontSize=10
FontColor=255,255,255,255
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=%1B
Hidden=1
[MeterDate]
Meter=String
Group=AllMeters
MeasureName=MeasureImageDate
X=5
Y=R
W=200
H=18
FontFace=Segoe UI
FontSize=10
FontColor=255,255,255,255
StringStyle=Bold
AntiAlias=1
Hidden=1