I can't answer this in detail now (maybe tomorrow), but there are multiple problems with your code:
- FileView parent measures only take folders as the value of their Path option, not files
- because of the above, a FileView child measure getting the last modified date of the file corresponding to a certain Index would be needed
- even so, since the Index option is a positional and not a name value of a file or folder from Path, you'd need to use the WildcardSearch option to specify your file in the parent FileView measure
- the options you used to get the last modified date in the FileView measure are wrong, see the Rainmeter manual for the FileView plugin
- once you get that date, you need to pass it to a Time measure having the proper TimeStampFormat option, see the manual for the Time measure
- once you have the Time measure, you'll need to use [YourTimeMeasure:Timestamp] to be able to compare it with some other Time measure's :Timestamp
- IfConditions are only used in measures, not meters
- DynamicVariables=1 might be needed in certain sections from the code
The needed changes are not particularly complicated, but they involve a few more steps to get what you want. Oh, and for the record, Lua is not absolutely needed to read a file, a WebParser measure having its URL option set to a local file can do it too (just saying, I guess that part is the only one working in your code already).
- FileView parent measures only take folders as the value of their Path option, not files
- because of the above, a FileView child measure getting the last modified date of the file corresponding to a certain Index would be needed
- even so, since the Index option is a positional and not a name value of a file or folder from Path, you'd need to use the WildcardSearch option to specify your file in the parent FileView measure
- the options you used to get the last modified date in the FileView measure are wrong, see the Rainmeter manual for the FileView plugin
- once you get that date, you need to pass it to a Time measure having the proper TimeStampFormat option, see the manual for the Time measure
- once you have the Time measure, you'll need to use [YourTimeMeasure:Timestamp] to be able to compare it with some other Time measure's :Timestamp
- IfConditions are only used in measures, not meters
- DynamicVariables=1 might be needed in certain sections from the code
The needed changes are not particularly complicated, but they involve a few more steps to get what you want. Oh, and for the record, Lua is not absolutely needed to read a file, a WebParser measure having its URL option set to a local file can do it too (just saying, I guess that part is the only one working in your code already).
Statistics: Posted by Yincognito — Today, 12:33 am