I have downloaded the Fortune files, so I have a directory of files.
What I want the config to do;
1) Choose a random file
2) Pull a quote from that file
3) Display the quote (update every 5 min, 30 min, 24 hr, or whatever)
The code I've got so far is;
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=255,0,0,255
DynamicWindowSize=1
[MeasureFile]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=F:\datfiles\
Subfolders=0
[MeterFile]
Meter=STRING
MeasureName=MeasureFile
FontColor=255,255,255,255
[MeasureFortune]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=MeasureFile
Separator=%
[MeterFortune]
Meter=STRING
MeasureName=MeasureFortune
FontColor=255,255,255,255
Y=50
The extra Meter (MeterFile) is for my info and won't be in the final config.
Each quote is separated with a "%".
At the moment I have it updating every second, while I try to code it, but it'll be updating much less frequently once I'm done.
So far, it can get a random filename from the directory (e.g. "F:\datfiles\food.txt"), but I want to pass that filename to the "PathName" variable in the second Measure, using the QuotePlugin to pull a quote from that file. I don't know if it's actually not possible, or if I'm just doing it wrong, so any help in the right direction would be great!