I'd like the images to change every month and indicate the month instead of a string.I used substitute but something is wrong. I am wondering if I have to specify a path for those images even if they are in the resources folder only.
Here is the code:-
Alloutofmercy wrote: ↑January 11th, 2022, 1:01 pm
I'd like the images to change every month and indicate the month instead of a string.I used substitute but something is wrong. I am wondering if I have to specify a path for those images even if they are in the resources folder only.
For sure. If the images are in the @Resources folder add the folder to the substituted values in the Substitute option of the [measureDate] measure. Something like this: Substitute="1":"#@#Jan1.png","2":"#@#Feb2.png",... (obviously add each month, I just shortened the option).
This way the string returned by the [measureDate] measure are containing the path of the images. Normally if those images are for instance in a folder named Month for example into the @Resources folder, you have to modify the above paths accordingly (if the images are @Resources\Month\Jan1.png - and so on -, use the Substitute="1":"#@#Month\Jan1.png",... option).
Alloutofmercy wrote: ↑January 11th, 2022, 2:53 pm
Dosent work still.
Make sure you have the images in the appropriate location. They have to be in the @Resources folder. Also check their names: are they named as you've used them in the Substitute option (Jan1.png, Feb2.png and so on)? Check the log. Is there any error message?
If you can't get it to work, please pack the whole config and upload the package, to can check. I need the images as well, beside the code.
Looks like there is a zero 0 as the first character in your Imagename... ImageName: Unable to open: 0C:\Users\ishaa\Documents\Rainmeter\Skins\Maximalist suite\@Resources\Jan1.png
Look through your code for all ImageName= instances and find the one(s) that have a zero in the name.
BTW, it is not ideal to have 'spaces' in the names of Rainmeter related files, sections, variables, etc.
Spaces may cause unpredictable errors if not handled properly...
eclectic-tech wrote: ↑January 11th, 2022, 6:36 pm
Looks like there is a zero 0 as the first character in your Imagename... ImageName: Unable to open: 0C:\Users\ishaa\Documents\Rainmeter\Skins\Maximalist suite\@Resources\Jan1.png
Look through your code for all ImageName= instances and find the one(s) that have a zero in the name.
Or the substitution is broken. A 0 might be as well for instance this way: Substitute="1":"0#@#Jan1.png","2":"#@#Feb2.png",.... If this is the case, there not even needed to have the 0 on each substitution, just on the current one (on the one related to January).
eclectic-tech wrote: ↑January 11th, 2022, 6:36 pm
BTW, it is not ideal to have 'spaces' in the names of Rainmeter related files, sections, variables, etc.
Spaces may cause unpredictable errors if not handled properly...
Right. Even if not forbidden, not a good idea either to use those spaces. They are making the quotes mandatory.
What I see from your latest error message capture, is that the skin is not looking in the @Resources folder for each image - instead it is looking for them in the config directory.
So you must choose where you want those images to be. Then either use the #@# prefix if they are in the @Resources folder, or not and the images have been chosen to go in the config folder instead.
If you are still having a problem with this, be sure to do another capture of your log file, to try and avoid confusion.
It really should make more sense, but if you are changing the paths of your files again, and again, then you will continue to get error messages.