Okay in short
when its saturday
i want to change the hight of a shape hence writekeyvalue 94
then Show text that i have to clean
on every other day i want to hide text clean and change the shape back to its originale size so writekeyvalue 58
i mean i think thats how that gos
but for some reason i have to refresh the skin manualy to make those changes take effect
and the weird thing is i have to refresh the skin twice
first time the text pups up seccond time the shape changes hight
same
with the its not saturday
refresh once clean gos away refresh seccond time shape changes back to normal
soo i have no idea what to do with that cause if i cant remember to clean my aquariums thats why this skin how am i supose to remember to refresh the skin daily twice
ps notepas++ and the rainmeter plugin are amazing did not now that was a thing
It is currently May 5th, 2024, 6:26 am
once again i ask for help
-
- Posts: 38
- Joined: November 12th, 2017, 6:03 pm
-
- Posts: 38
- Joined: November 12th, 2017, 6:03 pm
Re: once again i ask for help
okay i tried the !refresh bang
and now im stuck in a loop xD
so that did not work
and now im stuck in a loop xD
so that did not work
-
- Posts: 38
- Joined: November 12th, 2017, 6:03 pm
Re: once again i ask for help
This is the full skin so far
i still want to add more but with every thing i add i get more confused why it works
i still want to add more but with every thing i add i get more confused why it works
Code: Select all
[Rainmeter]
Update=0
DynamicWindowSize=1
AccurateText=1
SkinWidth=160
SkinHeight=300
[Variables]
@include=#@#\INC\DayCount.inc
[GetTime]
Measure=Time
[DaysCounter]
Measure=Calc
Formula=(86400-([GetTime:]%86400))
DynamicVariables=1
IfCondition=([DaysCounter] = 86400)
IfTrueAction=[!SetVariable DaysMainTank (#DaysMainTank#+1)][!SetVariable DaysNanoTank (#DaysNanoTank#+1)][!WriteKeyValue Variables DaysMainTank (#DaysMainTank#+1) "#@#DayCount.inc"][!WriteKeyValue Variables DaysNanoTank (#DaysNanoTank#+1) "#@#DayCount.inc"][!UpdateMeterGroup Tanks][!Redraw]
[Background]
Meter=Shape
Shape=Rectangle 1,1,158,198,10,10 | Fill Color 110,110,110 | Stroke Color 0,0,0 | StrokeWidth 3
[LabelStyle]
FontFace=#ff1#
FontSize=12
FontColor=#C1#
StringAlign=Center
StringStyle=Bold
AntiAlias=1
Group=Tanks
DynamicVariables=1
Y=10
[DisplayStyle]
FontFace=#ff2#
FontSize=80
FontColor=#C2#
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Group=Tanks
DynamicVariables=1
Y=110
[MainTankLabel]
Meter=String
MeterStyle=LabelStyle
Text=Main Tank
X=#XPos1#
[MainTankDisplay]
Meter=String
MeterStyle=DisplayStyle
Text=#DaysMainTank#
X=#XPos1#
[NanoTankLabel]
Meter=String
MeterStyle=LabelStyle
Text=Nano Tank
X=#XPos2#
[NanoTankDisplay]
Meter=String
MeterStyle=DisplayStyle
Text=#DaysNanoTank#
X=#XPos2#
[TankSwitch]
Meter=String
FontFace=#ff2#
FontSize=8
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Left
StringStyle=Bold
AntiAlias=1
Text=Tank
X=10
Y=180
LeftMouseUpAction=[!CommandMeasure Slider "Execute #State#"]
DynamicVariables=1
[Slider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=wait 16 | Repeat HideMain,20,16 | Repeat ShowNano,20,16
HideMain=[!SetVariable XPos1 "(Clamp(#XPos1#-20,-80,80))"][!HideMeter ResetMainTank]#U#
ShowNano=[!SetVariable XPos2 "(Clamp(#XPos2#+20,-80,80))"][!ShowMeter ResetNanoTank][!SetVariable State "2"]#U#
ActionList2=wait 16 | Repeat HideNano,20,16 | Repeat ShowMain,20,16
HideNano=[!SetVariable XPos2 "(Clamp(#XPos2#-20,-80,80))"][!HideMeter ResetNanoTank]#U#
ShowMain=[!SetVariable XPos1 "(Clamp(#XPos1#+20,-80,80))"][!ShowMeter ResetMainTank][!SetVariable State "1"]#U#
DynamicVariables=1
[ResetStyle]
FontFace=#ff2#
FontSize=8
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Right
StringStyle=Bold
AntiAlias=1
X=150
Y=r
[ResetMainTank]
Meter=String
MeterStyle=ResetStyle
Text=Reset Main
LeftMouseUpAction=[!SetVariable DaysMainTank 1][!WriteKeyValue Variables DaysMainTank 1 "#@#DayCount.inc"]
[ResetNanoTank]
Meter=String
MeterStyle=ResetStyle
Hidden=1
Text=Reset Nano
LeftMouseUpAction=[!SetVariable DaysNanoTank 1][!WriteKeyValue Variables DaysNanoTank 1 "#@#DayCount.inc"]
[BackgroundTask]
Meter=Shape
Y=203
Shape=Rectangle 1,1,158,#TaskSize#,10,10 | Fill Color 110,110,110 | Stroke Color 0,0,0 | StrokeWidth 3
Group=Tanks
[TaskStyle]
FontFace=#ff2#
FontSize=30
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Right
StringStyle=Bold
AntiAlias=1
X=125
Y=10r
[Task]
Meter=String
MeasureName=MeasureDay
MeasureName2=MeasureOddEvenDay
MeterStyle=TaskStyle
Group=Tanks
Text="%2"
[TaskClean]
Meter=String
FontFace=#ff2#
FontSize=30
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Right
StringStyle=Bold
AntiAlias=1
Text=Clean
Group=Tanks | Clean
Hidden=0
X=10r
Y=40r
[MeasureDay]
Measure=Time
Format=%#j
[MeasureOddEvenDay]
Measure=Calc
Formula=MeasureDay%2
Substitute="0":"Free","1":"Feed"
[MeasureClean]
Measure=Time
Format=%A, %B %#d, %Y
IfMatch=Saturday
IfMatchAction=[!SetVariable TaskSize 58][!WriteKeyValue Variables TaskSize "58" "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean][!ReDraw][!HideMeterGroup Clean][!Refresh]
IfNotMatchAction=[!SetVariable TaskSize 94][!WriteKeyValue Variables TaskSize "94" "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean][!ReDraw][!ShowMeterGroup Clean][!Refresh]
Last edited by eclectic-tech on October 3rd, 2020, 12:59 pm, edited 1 time in total.
Reason: Please use code tags. It is the </> symbol.
Reason: Please use code tags. It is the </> symbol.
-
- Rainmeter Sage
- Posts: 5407
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: once again i ask for help
@aredhone ... Can you also post the contents of '#@#\INC\DayCount.inc' so we have all the variables? Thanks
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 38
- Joined: November 12th, 2017, 6:03 pm
Re: once again i ask for help
yea sure i have no idea how to edit a post but here we go
EDIT: Moderator removed what appeared to be duplicate code. Is this the correct content?
Code: Select all
[Variables]
DaysMainTank=24
DaysNanoTank=11
TaskSize=58
State=1
U=[!UpdateMeasure Slider][!UpdateMeterGroup Tanks][!Redraw]
ff1=Good Times
ff2=Arial
C1=30,30,30
C2=0,0,0
XPos1=80
XPos2=-80
Last edited by eclectic-tech on October 3rd, 2020, 1:11 pm, edited 1 time in total.
-
- Posts: 38
- Joined: November 12th, 2017, 6:03 pm
Re: once again i ask for help
i changed update to 1000
as you said
and i have only one variables in the inc file
i tryde using the option of this side but faild once again
as you said
and i have only one variables in the inc file
i tryde using the
Code: Select all
-
- Posts: 38
- Joined: November 12th, 2017, 6:03 pm
Re: once again i ask for help
im still completely lost
as far i understand you have a inc file with only one [Variable] tab in it
as the skin it self it should !refresh once after the ifmatch or ifnotmatch
but that starts an loop loop = bad
the !redraw dosent seem to work or i have no idea how it works
the only thing im stuck on now is that on saturday the shape should change size
and text should apear
on every other day the shape should be in it originale size and the text should not be visible
as of now it only works when i refresh it 2 times manualy
or keep it stuck in a loop
but both dont seem fun
as far i understand you have a inc file with only one [Variable] tab in it
as the skin it self it should !refresh once after the ifmatch or ifnotmatch
but that starts an loop loop = bad
the !redraw dosent seem to work or i have no idea how it works
the only thing im stuck on now is that on saturday the shape should change size
and text should apear
on every other day the shape should be in it originale size and the text should not be visible
as of now it only works when i refresh it 2 times manualy
or keep it stuck in a loop
but both dont seem fun
-
- Posts: 38
- Joined: November 12th, 2017, 6:03 pm
Re: once again i ask for help
in the end i got it working with a 1 houre calc thing
ut refreshes my skin 2 times every houre
ill be still looking for better options but for now im done
Code: Select all
[MeasureDeactivate]
Measure=Calc
Formula=MeasureDeactivate+1
IfEqualValue=#TimeBuffer#
IfEqualAction=[!Refresh][!Delay 16][!Refresh]
Disabled=0
ill be still looking for better options but for now im done
Last edited by balala on October 3rd, 2020, 6:41 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
Re: once again i ask for help
No need for that, the code below does what you need, append it to the original skin I made for youaredhone wrote: ↑October 3rd, 2020, 3:23 pm in the end i got it working with a 1 houre calc thing
[MeasureDeactivate]
Measure=Calc
Formula=MeasureDeactivate+1
IfEqualValue=#TimeBuffer#
IfEqualAction=[!Refresh][!Delay 16][!Refresh]
Disabled=0
ut refreshes my skin 2 times every houre
ill be still looking for better options but for now im done
Code: Select all
[BackgroundTask]
Meter=Shape
Y=203
Shape=Rectangle 1,1,158,#TaskSize#,10,10 | Fill Color 110,110,110 | Stroke Color 0,0,0 | StrokeWidth 3
DynamicVariables=1
[TaskStyle]
FontFace=#ff2#
FontSize=30
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Center
StringStyle=Bold
AntiAlias=1
[MeasureDay]
Measure=Time
Format=%#j
[MeasureOddEvenDay]
Measure=Calc
Formula=MeasureDay%2
Substitute="0":"Free","1":"Feed"
[Task]
Meter=String
MeasureName=MeasureOddEvenDay
MeterStyle=TaskStyle
Text=%1
X=80
Y=10r
[TaskClean]
Meter=String
MeterStyle=TaskStyle
Text=Clean
Hidden=1
X=r
Y=40r
[MeasureClean]
Measure=Time
Format=%A
IfMatch=Saturday
IfNotMatchAction=[!SetVariable TaskSize 58][!WriteKeyValue Variables TaskSize "58" "#@#DayCount.inc"][!HideMeter TaskClean][!ReDraw]
IfMatchAction=[!SetVariable TaskSize 94][!WriteKeyValue Variables TaskSize "94" "#@#DayCount.inc"][!ShowMeter TaskClean][!ReDraw]
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
Re: once again i ask for help
If you don't want to run the skin 24/24 (the update in this case will be at midnight) you may change this measure in the original skin I made:
Code: Select all
[DaysCounter]
Measure=Calc
Formula=(86400-([GetTime:]%86400))
DynamicVariables=1
IfCondition=([DaysCounter] = 86400)
IfTrueAction=[!SetVariable DaysMainTank (#DaysMainTank #+1)][!SetVariable DaysNanoTank (#DaysNanoTank #+1)][!WriteKeyValue Variables DaysMainTank (#DaysMainTank #+1) "#@#DayCount.inc"][!WriteKeyValue Variables DaysNanoTank (#DaysNanoTank #+1) "#@#DayCount.inc"][!UpdateMeterGroup Tanks][!Redraw]
Code: Select all
[DaysCounter]
Measure=Calc
Formula=([GetTime:]%86400)
DynamicVariables=1
IfCondition=([DaysCounter] = (3600*14))
IfTrueAction=[!SetVariable DaysMainTank (#DaysMainTank#+1)][!SetVariable DaysNanoTank (#DaysNanoTank#+1)][!WriteKeyValue Variables DaysMainTank (#DaysMainTank#+1) "#@#DayCount.inc"][!WriteKeyValue Variables DaysNanoTank (#DaysNanoTank#+1) "#@#DayCount.inc"][!UpdateMeterGroup Tanks][!Redraw]