I'd really appreciate some help with the fileView plugin. I'm currently trying to get it to loop through all the files in a certain directory, find the latest one, and use a skin to display that file as an image on the desktop. Luckily, all of the files in the directory will always be .png files and nothing else, so that removes a certain aspect of difficulty. However, my difficulty lies in getting my code to work, and I'd really appreciate some help with it.
BlueJive wrote: ↑April 8th, 2021, 10:48 am
Hey all,
I'd really appreciate some help with the fileView plugin. I'm currently trying to get it to loop through all the files in a certain directory, find the latest one, and use a skin to display that file as an image on the desktop. Luckily, all of the files in the directory will always be .png files and nothing else, so that removes a certain aspect of difficulty. However, my difficulty lies in getting my code to work, and I'd really appreciate some help with it.
You need to specify a few more options in the parent measure to show only files and sort descending. Once you do that and correct a few typos, the full path and filename will be the value of your child measure.
Note you do not need an ImageName value in [Name] when you bind a measure that returns the full path and image name to the meter; the "Type=FilePath" in [MeasureChildName] returns those as the value.
Beside eclectic-tech's reply, note a mistake in this code: a [MeasureFolder] measure, used in the Path option of the [MeasureChild] (Path=[MeasureFolder]), doesn't even exist.
Thanks for that. I'm such a scatterbrain with Rainmeter code. I once spent an hour trying to figure out why my skin didn't work. Turned out I had put Meter=Text instead of Meter=String
BlueJive wrote: ↑April 8th, 2021, 4:28 pm
I once spent an hour trying to figure out why my skin didn't work. Turned out I had put Meter=Text instead of Meter=String
Yeah, it happens sometimes, however this mistake is something which can be discovered easily:
IIf the meter is the only meter of the skin, Rainmeter immediately disables (unloads) the skin when you try to load /refresh it, with a "skin doesn't contain meters" (or something similar) message.
I suppose the above is not your case (because in such a case there is easy to discover the mistake), but even if it's not, log is your friend in such case. A Meter=Text is not valid in [YourMeter] (Yourskin) error message in log tells you immediatelly what is your mistake.
Finally if you're using a better text editor, like Notepad++ for instance (but even if I'm not using it, I suppose Sublime Text for example has similar capabilities), not Notepad, it indicates you the mistake as well, by coloring red the Text word in the Meter=Text option.