Quote plugin


Plugin=QuotePlugin Retrieves a random value from one of two kinds of resources:

  • A random string value (by default a single line) from a text file.
  • A random file path and and name selected from a folder.

The most common uses of the plugin are to either retrieve and display a random line of text from a text file of quotes, or to retrieve and display a random image file from a folder.

Options

General measure options
All general measure options are valid.
PathName
Path of a file or a folder.
  • If the specified path is a file, the measure value is a random part of a text file and the Separator option is valid for use.
  • If the specified path is a folder, the measure value is the path and name of a random file in the folder and the Subfolders and FileFilter options are valid for use.
Separator Default: #CRLF#
Delimiter used to separate text. By default, the delimiter is a newline (carriage return / linefeed).
Subfolders Default: 1
If set to 1, subfolders of PathName are also used.
FileFilter
If specified, only file names matching a semicolon ; delimited list of filters are taken into account. The standard wildcard characters * and ? can be used.

Example: *.jpg;*.png;*.gif

Example

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,255
[MeasureQuote]
Measure=Plugin
Plugin=QuotePlugin
PathName=%HOMEDRIVE%%HOMEPATH%\Documents\Pictures\
Subfolders=1
FileFilter=*.jpg;*.png;*.gif
[MeterQuote]
Meter=Image
MeasureName=MeasureQuote
X=0
Y=0
W=200
PreserveAspectRatio=1