It is currently April 18th, 2024, 1:58 pm

Hourly auto calendar skin change?

Get help with creating, editing & fixing problems with skins
Domestican
Posts: 16
Joined: March 16th, 2018, 1:31 pm

Re: Hourly auto calendar skin change?

Post by Domestican »

ok so i have this in every file:
[Rainmeter]
Update=1000
DynamicWindowSize=1

[Variables]
Layout1=Akino
Layout2=Ayanami Rei
Layout3=C.C
Layout4=Elizabeth (7DS)
Layout5=FUUKA
Layout6=Hatsune Miku
Layout7=Hestia
Layout8 =Hitagi (Monogatari)
Layout9 =Lucy (Elfen Lied)
Layout10 =Mikasa
Layout11 =Misa (DeathNote)
Layout12 =Morgiana
Layout13 =Saber

[MeasureRandom]
Measure=Calc
Formula=Random
LowBound=1
HighBound=7
UpdateDivider=-1

[MeasureMinute]
Measure=Time
Format=0
[MeasureSecond]
Measure=Time
Format=%#S

[MeasureOnHour]
Measure=Calc
IfCondition=(MeasureMinute = 0) && (MeasureSecond = 0)
IfTrueAction=[!LoadLayout "[#Layout[&MeasureRandom]]"]
DynamicVariables=1

[MeterDummy]
Meter=String

when i load it after a few secs layout 13 appears and then nothing happens - it just stays there.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Hourly auto calendar skin change?

Post by jsmorley »

Not sure. Works for me, although you need to change HighBound to HighBound=13 so it selects the random number from the entire list.

I'm concerned about the "every file" bit though. I didn't and don't mean that this code should be in every file, but that you should create one new single skin that has this code, and ensure that that skin is always active.
Domestican
Posts: 16
Joined: March 16th, 2018, 1:31 pm

Re: Hourly auto calendar skin change?

Post by Domestican »

oh i see so it doesnt need to be in each calendar skin, just a seperate one and active. k,will do that thanks.
Last edited by Domestican on March 16th, 2018, 4:51 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Hourly auto calendar skin change?

Post by jsmorley »

Domestican wrote:oh i see so it doesnt need to be in each calendar skin, just one and active. k,will do that thanks.
Right, just be sure it exists in each Layout .ini file, so, it is always reloaded when the Layout changes.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Hourly auto calendar skin change?

Post by jsmorley »

Each Layout .ini file should have:
1.png
You do not have the required permissions to view the files attached to this post.
Domestican
Posts: 16
Joined: March 16th, 2018, 1:31 pm

Re: Hourly auto calendar skin change?

Post by Domestican »

its working now, thanks so much!! :) if 0 is one minute - how does that determine this. so what would 10mins be or 1 hour
Domestican
Posts: 16
Joined: March 16th, 2018, 1:31 pm

Re: Hourly auto calendar skin change?

Post by Domestican »

Must have been a fluke, not working now stuck on layout 13 again. Iv'e made layoutloader its own skin, and added the lines to all the layout ini's via edit at saved layouts. and then loaded the layoutloader skin - layout 13 comes up after a sec and doesn't change.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Hourly auto calendar skin change?

Post by jsmorley »

Domestican wrote:Must have been a fluke, not working now stuck on layout 13 again. Iv'e made layoutloader its own skin, and added the lines to all the layout ini's via edit at saved layouts. and then loaded the layoutloader skin - layout 13 comes up after a sec and doesn't change.
All I can suggest is that you double check everything.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Hourly auto calendar skin change?

Post by jsmorley »

You might want to exit Rainmeter and double-check all the Layout .ini files, then start Rainmeter and manually load one of them. Just to be sure something odd isn't being saved in the actual current Rainmeter.ini file.
Domestican
Posts: 16
Joined: March 16th, 2018, 1:31 pm

Re: Hourly auto calendar skin change?

Post by Domestican »

think this might be why, the layoutloder skin isn't remaining loaded. each time i start it up it loads a random one of my layouts but never changes, could this be why?