Hello everyone it is me again, since my last post I have mastered animated button making and have made 3 animated buttons thus far and would like to take on a new project: To create an animated clock that will display 1 animated picture during the day and a different animated picture at night.
I have been looking at bangs: http://docs.rainmeter.net/manual/bangs#Skin
and am trying to figure out which bang to use so i can make it be so at 1 am it will load the day picture and at 5pm it will load the night picture. I only have a basic coding done thus far:
As you can see i have been constantly playing with the coding trying to find the right combo, also how should I have my pictures saved? Note I have 2 sets of pictures, 1 set of 11 and 1 set of 10 and then have the coding play them in the right order instead of making 1 css with all the frames in it. I currently have the day pictures labeled Frame1, Frame2..... through 11 and the Night pictures labeled Frame12... through frame 21.
What folder path should I put them in? The usual, @Resources\folder\folder with pics or @Resources\folder\folder with 2 folders 1 day 1 night\2 folders with pics.
I have been looking into the bangs however it seems the ones i wanted to use were meant to do things to entire skins not little pieces of a skin.
Last edited by Brian on February 6th, 2013, 5:44 pm, edited 1 time in total.
Reason:Please use [code] tags.
videorfeak wrote:What folder path should I put them in? The usual, @Resources\folder\folder with pics or @Resources\folder\folder with 2 folders 1 day 1 night\2 folders with pics.
As the images have unique names I would put them all in a single folder @Resources\Images\Frames. You can them access them with a single meter such as:
This would show the Frame given by the value of [ImageNumberCalc]. However, you don't seem to have [ImageNumberCalc] in the code you posted so you need to put that calc measure in somewhere. I would suggest at the top with [MeasureDate] and [MeasureTime] as it is good practice to put the Measure before the Meters that display something based on the value of the Measure.
Also, you have put Update=100 in the Rainmeter section, presumably for the animation, but you don't need measures like [MeasureDate] or meters like [MeterDate] updating ten times per second. At the very least you should add UpdateDivider=10 to all the meters and measures that don't need to be updated every 100ms.
Another point is that ImageName=#@#DayNightImage\ in your [MeterDayNightImage] will never show anything because you have given a path ( @Resources\DayNightImage\ ) but no name. It needs to be something like ImageName=#@#Images\#DayNightImage# which will display @Resources\Images\DayTime.png or @Resources\Images\NightTime.png depending on the time.
[Counter]
Measure=Calc
;formula will depend on the number of images and speed
[DayNight]
Measure=Time
Format=%H
Substitute="00":"night","01":"day","02":"day", ... ,"17":"night", ...
[Image]
Meter=Image
ImageName="#@#images\[DayNight][Counter].png
DynamicVariables=1
so in @RESOURCES\images you would have images called day1.png, day2.png, day3.png, .... , night1.png ...
Hello everyone thank you for all of your replies, I have tried messing around with everything y'all mentioned and I couldnt get it to work so i am currently trying a new idea, to connect the clock to the system clock via timedate.cpl plugin and this is what I have: