It is currently April 24th, 2024, 8:16 am

Skin executes with no regard to condition

Get help with creating, editing & fixing problems with skins
sockeater
Posts: 17
Joined: July 30th, 2019, 2:43 pm

Skin executes with no regard to condition

Post by sockeater »

Hi, I was able to create a skin that changes layout based on time thanks to the help I received from wonderful users on this forum.

The skin behaves strangely because I have conditions for when the skin should change the layout but it's completely ignoring the condition and changing the layout at a fixed interval(5 seconds in my case).

Here is my code:

Code: Select all

[Metadata]
Name=Layout randomizer
Author=
Information=Change Layout Based on Time
Version= 0.01

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
Group=#RootConfig#

[mRandom]
Measure=Calc
Formula=Random
LowBound=1
HighBound=288
UpdateRandom=1
UpdateDivider=-1


[mTime]
Measure=Time
Format=%H%M%S
IfCondition=(mTime>=000000) && (mTime<000005)
IfTrueAction=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition2=(mTime>=000500) && (mTime<000505)
IfTrueAction2=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition3=(mTime>=001000) && (mTime<001005)
IfTrueAction3=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition4=(mTime>=001500) && (mTime<001505)
IfTrueAction4=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition5=(mTime>=002000) && (mTime<002005)
IfTrueAction5=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition6=(mTime>=002500) && (mTime<002505)
IfTrueAction6=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition7=(mTime>=003000) && (mTime<003005)
IfTrueAction7=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition8=(mTime>=003500) && (mTime<003505)
IfTrueAction8=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition9=(mTime>=004000) && (mTime<004005)
IfTrueAction9=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition10=(mTime>=004500) && (mTime<004505)
IfTrueAction10=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition11=(mTime>=005000) && (mTime<005005)
IfTrueAction11=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition12=(mTime>=005500) && (mTime<005505)
IfTrueAction12=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition13=(mTime>=010000) && (mTime<010005)
IfTrueAction13=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition14=(mTime>=010500) && (mTime<010505)
IfTrueAction14=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition15=(mTime>=011000) && (mTime<011005)
IfTrueAction15=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition16=(mTime>=011500) && (mTime<011505)
IfTrueAction16=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition17=(mTime>=012000) && (mTime<012005)
IfTrueAction17=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition18=(mTime>=012500) && (mTime<012505)
IfTrueAction18=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition19=(mTime>=013000) && (mTime<013005)
IfTrueAction19=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition20=(mTime>=013500) && (mTime<013505)
IfTrueAction20=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition21=(mTime>=014000) && (mTime<014005)
IfTrueAction21=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition22=(mTime>=014500) && (mTime<014505)
IfTrueAction22=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition23=(mTime>=015000) && (mTime<015005)
IfTrueAction23=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition24=(mTime>=015500) && (mTime<015505)
IfTrueAction24=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition25=(mTime>=020000) && (mTime<020005)
IfTrueAction25=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition26=(mTime>=020500) && (mTime<020505)
IfTrueAction26=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition27=(mTime>=021000) && (mTime<021005)
IfTrueAction27=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition28=(mTime>=021500) && (mTime<021505)
IfTrueAction28=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition29=(mTime>=022000) && (mTime<022005)
IfTrueAction29=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition30=(mTime>=022500) && (mTime<022505)
IfTrueAction30=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition31=(mTime>=023000) && (mTime<023005)
IfTrueAction31=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition32=(mTime>=023500) && (mTime<023505)
IfTrueAction32=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition33=(mTime>=024000) && (mTime<024005)
IfTrueAction33=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition34=(mTime>=024500) && (mTime<024505)
IfTrueAction34=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition35=(mTime>=025000) && (mTime<205005)
IfTrueAction35=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition36=(mTime>=025500) && (mTime<025505)
IfTrueAction36=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition37=(mTime>=030000) && (mTime<030005)
IfTrueAction37=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition38=(mTime>=030500) && (mTime<030505)
IfTrueAction38=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition39=(mTime>=031000) && (mTime<031005)
IfTrueAction39=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition40=(mTime>=031500) && (mTime<031505)
IfTrueAction40=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition41=(mTime>=032000) && (mTime<032005)
IfTrueAction41=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition42=(mTime>=032500) && (mTime<032505)
IfTrueAction42=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition43=(mTime>=033000) && (mTime<033005)
IfTrueAction43=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition44=(mTime>=033500) && (mTime<033505)
IfTrueAction44=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition45=(mTime>=034000) && (mTime<034005)
IfTrueAction45=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition46=(mTime>=034500) && (mTime<034505)
IfTrueAction46=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition47=(mTime>=035000) && (mTime<035005)
IfTrueAction47=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition48=(mTime>=035500) && (mTime<035505)
IfTrueAction48=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition49=(mTime>=040000) && (mTime<040005)
IfTrueAction49=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition50=(mTime>=040500) && (mTime<040505)
IfTrueAction50=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition51=(mTime>=041000) && (mTime<041005)
IfTrueAction51=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition52=(mTime>=041500) && (mTime<041505)
IfTrueAction52=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition53=(mTime>=042000) && (mTime<042005)
IfTrueAction53=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition54=(mTime>=042500) && (mTime<042505)
IfTrueAction54=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition55=(mTime>=043000) && (mTime<043005)
IfTrueAction55=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition56=(mTime>=043500) && (mTime<043505)
IfTrueAction56=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition57=(mTime>=044000) && (mTime<044005)
IfTrueAction57=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition58=(mTime>=044500) && (mTime<044505)
IfTrueAction58=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition59=(mTime>=045000) && (mTime<045005)
IfTrueAction59=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition60=(mTime>=045500) && (mTime<045505)
IfTrueAction60=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition61=(mTime>=050000) && (mTime<050005)
IfTrueAction61=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition62=(mTime>=050500) && (mTime<050505)
IfTrueAction62=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition63=(mTime>=051000) && (mTime<051005)
IfTrueAction63=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition64=(mTime>=051500) && (mTime<051505)
IfTrueAction64=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition65=(mTime>=052000) && (mTime<052005)
IfTrueAction65=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition66=(mTime>=052500) && (mTime<052505)
IfTrueAction66=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition67=(mTime>=053000) && (mTime<053005)
IfTrueAction67=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition68=(mTime>=053500) && (mTime<053505)
IfTrueAction68=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition69=(mTime>=054000) && (mTime<054005)
IfTrueAction69=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition70=(mTime>=054500) && (mTime<054505)
IfTrueAction70=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition71=(mTime>=055000) && (mTime<055005)
IfTrueAction71=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition72=(mTime>=055500) && (mTime<055505)
IfTrueAction72=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition73=(mTime>=060000) && (mTime<060005)
IfTrueAction73=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition74=(mTime>=060500) && (mTime<060505)
IfTrueAction74=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition75=(mTime>=061000) && (mTime<061005)
IfTrueAction75=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition76=(mTime>=061500) && (mTime<061505)
IfTrueAction76=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition77=(mTime>=062000) && (mTime<062005)
IfTrueAction77=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition78=(mTime>=062500) && (mTime<062505)
IfTrueAction78=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition79=(mTime>=063000) && (mTime<063005)
IfTrueAction79=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition80=(mTime>=063500) && (mTime<063505)
IfTrueAction80=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition81=(mTime>=064000) && (mTime<064005)
IfTrueAction81=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition82=(mTime>=064500) && (mTime<064505)
IfTrueAction82=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition83=(mTime>=065000) && (mTime<065005)
IfTrueAction83=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition84=(mTime>=065500) && (mTime<065505)
IfTrueAction84=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition85=(mTime>=070000) && (mTime<070005)
IfTrueAction85=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition86=(mTime>=070500) && (mTime<070505)
IfTrueAction86=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition87=(mTime>=071000) && (mTime<071005)
IfTrueAction87=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition88=(mTime>=071500) && (mTime<071505)
IfTrueAction88=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition89=(mTime>=072000) && (mTime<072005)
IfTrueAction89=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition90=(mTime>=072500) && (mTime<072505)
IfTrueAction90=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition91=(mTime>=073000) && (mTime<073005)
IfTrueAction91=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition92=(mTime>=073500) && (mTime<073505)
IfTrueAction92=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition93=(mTime>=074000) && (mTime<074005)
IfTrueAction93=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition94=(mTime>=074500) && (mTime<074505)
IfTrueAction94=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition95=(mTime>=075000) && (mTime<075005)
IfTrueAction95=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition96=(mTime>=075500) && (mTime<075505)
IfTrueAction96=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition97=(mTime>=080000) && (mTime<080005)
IfTrueAction97=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition98=(mTime>=080500) && (mTime<080505)
IfTrueAction98=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition99=(mTime>=081000) && (mTime<081005)
IfTrueAction99=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition100=(mTime>=081500) && (mTime<081505)
IfTrueAction100=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition101=(mTime>=082000) && (mTime<082005)
IfTrueAction101=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition102=(mTime>=082500) && (mTime<082505)
IfTrueAction102=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition103=(mTime>=083000) && (mTime<083005)
IfTrueAction103=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition104=(mTime>=083500) && (mTime<083505)
IfTrueAction104=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition105=(mTime>=084000) && (mTime<084005)
IfTrueAction105=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition106=(mTime>=084500) && (mTime<084505)
IfTrueAction106=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition107=(mTime>=085000) && (mTime<085005)
IfTrueAction107=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition108=(mTime>=085500) && (mTime<085505)
IfTrueAction108=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition109=(mTime>=090000) && (mTime<090005)
IfTrueAction109=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition110=(mTime>=090500) && (mTime<090505)
IfTrueAction110=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition111=(mTime>=091000) && (mTime<091005)
IfTrueAction111=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition112=(mTime>=091500) && (mTime<091505)
IfTrueAction112=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition113=(mTime>=092000) && (mTime<092005)
IfTrueAction113=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition114=(mTime>=092500) && (mTime<092505)
IfTrueAction114=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition115=(mTime>=093000) && (mTime<093005)
IfTrueAction115=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition116=(mTime>=093500) && (mTime<093505)
IfTrueAction116=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition117=(mTime>=094000) && (mTime<094005)
IfTrueAction117=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition118=(mTime>=094500) && (mTime<094505)
IfTrueAction118=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition119=(mTime>=095000) && (mTime<095005)
IfTrueAction119=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition120=(mTime>=095500) && (mTime<095505)
IfTrueAction120=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition121=(mTime>=100000) && (mTime<100005)
IfTrueAction121=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition122=(mTime>=100500) && (mTime<100505)
IfTrueAction122=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition123=(mTime>=101000) && (mTime<101005)
IfTrueAction123=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition124=(mTime>=101500) && (mTime<101505)
IfTrueAction124=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition125=(mTime>=102000) && (mTime<102005)
IfTrueAction125=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition126=(mTime>=102500) && (mTime<102505)
IfTrueAction126=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition127=(mTime>=103000) && (mTime<103005)
IfTrueAction127=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition128=(mTime>=103500) && (mTime<103505)
IfTrueAction128=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition129=(mTime>=104000) && (mTime<104005)
IfTrueAction129=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition130=(mTime>=104500) && (mTime<104505)
IfTrueAction130=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition131=(mTime>=105000) && (mTime<105005)
IfTrueAction131=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition132=(mTime>=105500) && (mTime<105505)
IfTrueAction132=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition133=(mTime>=110000) && (mTime<110005)
IfTrueAction133=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition134=(mTime>=110500) && (mTime<110505)
IfTrueAction134=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition135=(mTime>=111000) && (mTime<111005)
IfTrueAction135=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition136=(mTime>=111500) && (mTime<111505)
IfTrueAction136=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition137=(mTime>=112000) && (mTime<112005)
IfTrueAction137=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition138=(mTime>=112500) && (mTime<112505)
IfTrueAction138=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition139=(mTime>=113000) && (mTime<113005)
IfTrueAction139=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition140=(mTime>=113500) && (mTime<113505)
IfTrueAction140=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition141=(mTime>=114000) && (mTime<114005)
IfTrueAction141=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition142=(mTime>=114500) && (mTime<114505)
IfTrueAction142=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition143=(mTime>=115000) && (mTime<115005)
IfTrueAction143=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition144=(mTime>=115500) && (mTime<115505)
IfTrueAction144=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]

IfCondition145=(mTime>=120000) && (mTime<120005)
IfTrueAction145=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition146=(mTime>=120500) && (mTime<120505)
IfTrueAction146=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition147=(mTime>=121000) && (mTime<121005)
IfTrueAction147=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition148=(mTime>=121500) && (mTime<121505)
IfTrueAction148=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition149=(mTime>=122000) && (mTime<122005)
IfTrueAction149=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition150=(mTime>=122500) && (mTime<122505)
IfTrueAction150=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition151=(mTime>=123000) && (mTime<123005)
IfTrueAction151=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition152=(mTime>=123500) && (mTime<123505)
IfTrueAction152=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition153=(mTime>=124000) && (mTime<124005)
IfTrueAction153=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition154=(mTime>=124500) && (mTime<124505)
IfTrueAction154=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition155=(mTime>=125000) && (mTime<125005)
IfTrueAction155=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition156=(mTime>=125500) && (mTime<125505)
IfTrueAction156=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition157=(mTime>=130000) && (mTime<130005)
IfTrueAction157=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition158=(mTime>=130500) && (mTime<130505)
IfTrueAction158=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition159=(mTime>=131000) && (mTime<131005)
IfTrueAction159=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition160=(mTime>=131500) && (mTime<131505)
IfTrueAction160=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition161=(mTime>=132000) && (mTime<132005)
IfTrueAction161=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition162=(mTime>=132500) && (mTime<132505)
IfTrueAction162=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition163=(mTime>=133000) && (mTime<133005)
IfTrueAction163=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition164=(mTime>=133500) && (mTime<133505)
IfTrueAction164=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition165=(mTime>=134000) && (mTime<134005)
IfTrueAction165=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition166=(mTime>=134500) && (mTime<134505)
IfTrueAction166=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition167=(mTime>=135000) && (mTime<135005)
IfTrueAction167=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition168=(mTime>=135500) && (mTime<135505)
IfTrueAction168=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition169=(mTime>=140000) && (mTime<140005)
IfTrueAction169=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]

IfCondition170=(mTime>=140500) && (mTime<140505)
IfTrueAction170=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition171=(mTime>=141000) && (mTime<141005)
IfTrueAction171=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition172=(mTime>=141500) && (mTime<141505)
IfTrueAction172=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition173=(mTime>=142000) && (mTime<142005)
IfTrueAction173=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition174=(mTime>=142500) && (mTime<142505)
IfTrueAction174=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition175=(mTime>=143000) && (mTime<143005)
IfTrueAction175=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition176=(mTime>=143500) && (mTime<143505)
IfTrueAction176=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition177=(mTime>=144000) && (mTime<144005)
IfTrueAction177=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition178=(mTime>=144500) && (mTime<144505)
IfTrueAction178=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition179=(mTime>=145000) && (mTime<145005)
IfTrueAction179=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition180=(mTime>=145500) && (mTime<145505)
IfTrueAction180=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition181=(mTime>=150000) && (mTime<150005)
IfTrueAction181=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition182=(mTime>=150500) && (mTime<150505)
IfTrueAction182=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition183=(mTime>=151000) && (mTime<151005)
IfTrueAction183=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition184=(mTime>=151500) && (mTime<151505)
IfTrueAction184=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition185=(mTime>=152000) && (mTime<152005)
IfTrueAction185=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition186=(mTime>=152500) && (mTime<152505)
IfTrueAction186=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition187=(mTime>=153000) && (mTime<153005)
IfTrueAction187=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition188=(mTime>=153500) && (mTime<153505)
IfTrueAction188=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition189=(mTime>=154000) && (mTime<154005)
IfTrueAction189=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition190=(mTime>=154500) && (mTime<154505)
IfTrueAction190=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition191=(mTime>=155000) && (mTime<155005)
IfTrueAction191=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition192=(mTime>=155500) && (mTime<155505)
IfTrueAction192=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition193=(mTime>=160000) && (mTime<160005)
IfTrueAction193=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]

IfCondition194=(mTime>=160500) && (mTime<160505)
IfTrueAction194=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition195=(mTime>=161000) && (mTime<161005)
IfTrueAction195=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition196=(mTime>=161500) && (mTime<161505)
IfTrueAction196=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition197=(mTime>=162000) && (mTime<162005)
IfTrueAction197=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition198=(mTime>=162500) && (mTime<162505)
IfTrueAction198=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition199=(mTime>=163000) && (mTime<163005)
IfTrueAction199=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition200=(mTime>=163500) && (mTime<163505)
IfTrueAction200=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition201=(mTime>=164000) && (mTime<164005)
IfTrueAction201=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition202=(mTime>=164500) && (mTime<164505)
IfTrueAction202=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition203=(mTime>=165000) && (mTime<165005)
IfTrueAction203=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition204=(mTime>=165500) && (mTime<165505)
IfTrueAction204=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition205=(mTime>=170000) && (mTime<170005)
IfTrueAction205=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition206=(mTime>=170500) && (mTime<170505)
IfTrueAction206=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition207=(mTime>=171000) && (mTime<171005)
IfTrueAction207=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition208=(mTime>=171500) && (mTime<171505)
IfTrueAction208=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition209=(mTime>=172000) && (mTime<172005)
IfTrueAction209=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition210=(mTime>=172500) && (mTime<172505)
IfTrueAction210=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition211=(mTime>=173000) && (mTime<173005)
IfTrueAction211=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition212=(mTime>=173500) && (mTime<173505)
IfTrueAction212=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition213=(mTime>=174000) && (mTime<174005)
IfTrueAction213=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition214=(mTime>=174500) && (mTime<174505)
IfTrueAction214=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition215=(mTime>=175000) && (mTime<175005)
IfTrueAction215=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition216=(mTime>=175500) && (mTime<175505)
IfTrueAction216=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition217=(mTime>=180000) && (mTime<180005)
IfTrueAction217=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]

IfCondition218=(mTime>=180500) && (mTime<180505)
IfTrueAction218=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition219=(mTime>=181000) && (mTime<181005)
IfTrueAction219=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition220=(mTime>=181500) && (mTime<181505)
IfTrueAction220=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition221=(mTime>=182000) && (mTime<182005)
IfTrueAction221=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition222=(mTime>=182500) && (mTime<182505)
IfTrueAction222=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition223=(mTime>=183000) && (mTime<183005)
IfTrueAction223=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition224=(mTime>=183500) && (mTime<183505)
IfTrueAction224=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition225=(mTime>=184000) && (mTime<184005)
IfTrueAction225=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition226=(mTime>=184500) && (mTime<184505)
IfTrueAction226=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition227=(mTime>=185000) && (mTime<185005)
IfTrueAction227=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition228=(mTime>=185500) && (mTime<185505)
IfTrueAction228=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition229=(mTime>=190000) && (mTime<190005)
IfTrueAction229=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition230=(mTime>=190500) && (mTime<190505)
IfTrueAction230=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition231=(mTime>=191000) && (mTime<191005)
IfTrueAction231=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition232=(mTime>=191500) && (mTime<191505)
IfTrueAction232=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition233=(mTime>=192000) && (mTime<192005)
IfTrueAction233=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition234=(mTime>=192500) && (mTime<192505)
IfTrueAction234=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition235=(mTime>=193000) && (mTime<193005)
IfTrueAction235=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition236=(mTime>=193500) && (mTime<193505)
IfTrueAction236=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition237=(mTime>=194000) && (mTime<194005)
IfTrueAction237=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition238=(mTime>=194500) && (mTime<194505)
IfTrueAction238=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition239=(mTime>=195000) && (mTime<195005)
IfTrueAction239=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition240=(mTime>=195500) && (mTime<195505)
IfTrueAction240=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition241=(mTime>=200000) && (mTime<200005)
IfTrueAction241=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]

IfCondition242=(mTime>=200500) && (mTime<200505)
IfTrueAction242=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition243=(mTime>=201000) && (mTime<201005)
IfTrueAction243=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition244=(mTime>=201500) && (mTime<201505)
IfTrueAction244=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition245=(mTime>=202000) && (mTime<202005)
IfTrueAction245=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition246=(mTime>=202500) && (mTime<202505)
IfTrueAction246=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition247=(mTime>=203000) && (mTime<203005)
IfTrueAction247=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition248=(mTime>=203500) && (mTime<203505)
IfTrueAction248=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition249=(mTime>=204000) && (mTime<204005)
IfTrueAction249=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition250=(mTime>=204500) && (mTime<204505)
IfTrueAction250=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition251=(mTime>=205000) && (mTime<205005)
IfTrueAction251=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition252=(mTime>=205500) && (mTime<205505)
IfTrueAction252=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition253=(mTime>=210000) && (mTime<210005)
IfTrueAction253=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition254=(mTime>=210500) && (mTime<210505)
IfTrueAction254=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition255=(mTime>=211000) && (mTime<211005)
IfTrueAction255=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition256=(mTime>=211500) && (mTime<211505)
IfTrueAction256=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition257=(mTime>=212000) && (mTime<212005)
IfTrueAction257=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition258=(mTime>=212500) && (mTime<212505)
IfTrueAction258=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition259=(mTime>=213000) && (mTime<213005)
IfTrueAction259=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition260=(mTime>=213500) && (mTime<213505)
IfTrueAction260=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition261=(mTime>=214000) && (mTime<214005)
IfTrueAction261=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition262=(mTime>=214500) && (mTime<214505)
IfTrueAction262=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition263=(mTime>=215000) && (mTime<215005)
IfTrueAction263=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition264=(mTime>=215500) && (mTime<215505)
IfTrueAction264=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition265=(mTime>=220000) && (mTime<220005)
IfTrueAction265=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]

IfCondition266=(mTime>=220500) && (mTime<220505)
IfTrueAction266=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition267=(mTime>=221000) && (mTime<221005)
IfTrueAction267=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition268=(mTime>=221500) && (mTime<221505)
IfTrueAction268=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition269=(mTime>=222000) && (mTime<222005)
IfTrueAction269=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition270=(mTime>=222500) && (mTime<222505)
IfTrueAction270=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition271=(mTime>=223000) && (mTime<223005)
IfTrueAction271=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition272=(mTime>=223500) && (mTime<223505)
IfTrueAction272=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition273=(mTime>=224000) && (mTime<224005)
IfTrueAction273=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition274=(mTime>=224500) && (mTime<224505)
IfTrueAction274=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition275=(mTime>=225000) && (mTime<225005)
IfTrueAction275=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition276=(mTime>=225500) && (mTime<225505)
IfTrueAction276=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition277=(mTime>=230000) && (mTime<230005)
IfTrueAction277=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition278=(mTime>=230500) && (mTime<230505)
IfTrueAction278=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition279=(mTime>=231000) && (mTime<231005)
IfTrueAction279=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition280=(mTime>=231500) && (mTime<231505)
IfTrueAction280=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition281=(mTime>=232000) && (mTime<232005)
IfTrueAction281=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition282=(mTime>=232500) && (mTime<232505)
IfTrueAction282=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition283=(mTime>=233000) && (mTime<233005)
IfTrueAction283=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition284=(mTime>=233500) && (mTime<233505)
IfTrueAction284=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition285=(mTime>=234000) && (mTime<234005)
IfTrueAction285=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition286=(mTime>=234500) && (mTime<234505)
IfTrueAction286=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition287=(mTime>=235000) && (mTime<235005)
IfTrueAction287=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]
IfCondition288=(mTime>=235500) && (mTime<235505)
IfTrueAction288=[!UpdateMeasure mRandom][!Delay 5000][!LoadLayout "b[mRandom]"]



DynamicVariables=1



[MeterString]
Meter=String
The weird thing is, there was one time where it behaved like it should: changing the layout at 5 minute intervals (7:00, 7:05, 7:10, ... 10:10, 10:15, etc...) but that was only once.

When I boot up the skin, it chooses a random layout which persists for 5 seconds, and changes it again and it doesn't care about the 5 minute interval conditions that are in the code. Without the [!Delay 5000] it rapidly changes my layout and I have to force close rainmeter through task manager. Is there something I overlooked in the code? Would IfEqualAction be an alternative to fixing this?

Thanks for looking
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin executes with no regard to condition

Post by jsmorley »

That skin almost literally makes me cry... ;-)

Try this:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[mRandom]
Measure=Calc
Formula=Random
LowBound=1
HighBound=288
UpdateRandom=1
UpdateDivider=-1

[mMinutes]
Measure=Time
Format=%M

[mSeconds]
Measure=Time
Format=%S
DynamicVariables=1
IfCondition=(mMinutes % 5 = 0) && (mSeconds < 5)
IfTrueAction=[!Delay 5000][!UpdateMeasure mRandom][!Log "It's been 5 minutes at [mMinutes]:[mSeconds] Loading [mRandom]"]

[MeterDummy]
Meter=String

That will execute every 5 minutes and 4 seconds. The 4 seconds are just for reliability and safety, in case Rainmeter is "busy" at the zero'th second.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Skin executes with no regard to condition

Post by eclectic-tech »

You beat me Jeff! 8-)

Yes, for changes at a few precise times, the original code works well, but for every 5 minutes, that is not the approach to use.
Modulo math is a much better solution.

Side note: You have 2 [Rainmeter] sections; it doesn't hurt anything, but you could delete one of them.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin executes with no regard to condition

Post by jsmorley »

Yes, the formula (mMinutes % 5 = 0) simply means "if the value of mMinutes can be evenly divided by 5, then true", or put another way, "If I divide mMinutes by 5 and have no remainder, then true".

Also note that since this skin itself is reloaded on each execution, there is no way to use UniqueRandom, and while with 288 possible choices it won't be often, the possibility that it loads the same Layout twice in a row certainly exists. There is no easy way to overcome that. You are throwing a 288-sided die.

Do be sure that this skin exists and is loading in each and every one of the 288 Layouts...

I have to confess that I hate this entire idea... I fail to see how you can possibly have 288 Layouts that are unique enough to warrant randomly loading them every five minutes.
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Skin executes with no regard to condition

Post by balala »

eclectic-tech wrote: August 18th, 2019, 3:22 pm Side note: You have 2 [Rainmeter] sections; it doesn't hurt anything, but you could delete one of them.
Not exactly. The second [Rainmeter] section has a Group option, which in this case is ignored.
sockeater
Posts: 17
Joined: July 30th, 2019, 2:43 pm

Re: Skin executes with no regard to condition

Post by sockeater »

jsmorley wrote: August 18th, 2019, 3:17 pm That skin almost literally makes me cry... ;-)

Try this:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[mRandom]
Measure=Calc
Formula=Random
LowBound=1
HighBound=288
UpdateRandom=1
UpdateDivider=-1

[mMinutes]
Measure=Time
Format=%M

[mSeconds]
Measure=Time
Format=%S
DynamicVariables=1
IfCondition=(mMinutes % 5 = 0) && (mSeconds < 5)
IfTrueAction=[!Delay 5000][!UpdateMeasure mRandom][!Log "It's been 5 minutes at [mMinutes]:[mSeconds] Loading [mRandom]"]

[MeterDummy]
Meter=String

That will execute every 5 minutes and 4 seconds. The 4 seconds are just for reliability and safety, in case Rainmeter is "busy" at the zero'th second.
Hey thanks jsmorley! You are the man! I didn't even think about using modulus operator. This is so much more efficient than writing 288 instances of conditions :Whistle