It is currently June 27th, 2019, 11:06 am

Interlinked if or the way not to run a mesure

Help with creating, editing & fixing problems with skins
RNestaM
Posts: 12
Joined: April 9th, 2019, 5:59 pm

Interlinked if or the way not to run a mesure

RNestaM » April 9th, 2019, 6:14 pm

Hi,

I'm new in rainmeter. I succeed some basics features but now i'm blocked.

I try to do a "to do list". But i do not succeed the part where one "delete" icon, delete all the checked entry.

I've done a measure to check the value of a variable and delete the line if it's 1. The variable change of number (0 or 1) if it's checked or not.

But the measure run at each !redraw or !refresh, so the measure delete the line at the moment where i check the case And i don't want this. I do want to keep my line checked until i click on the "delete cross".

So in my brain, i see 2 solutions :
- Interlinked if (If variable1=X AND variable2=Y THEN....)
or
- The way to run a measure ONLY on action and not at every reaload of the skin.

can you help me ?

Thx
User avatar
balala
Rainmeter Sage
Posts: 8320
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Interlinked if or the way not to run a mesure

balala » April 9th, 2019, 6:45 pm

RNestaM wrote:
April 9th, 2019, 6:14 pm
can you help me ?
Probably not this way. It's very hard for anyone to imagine what you've done.
Please post a sample code or pack the config and upload it. Would be useful...
RNestaM
Posts: 12
Joined: April 9th, 2019, 5:59 pm

Re: Interlinked if or the way not to run a mesure

RNestaM » April 9th, 2019, 7:07 pm

Yes,of course.
i try with "!disablemeasure" But it doesn't work.

Thks

Code: Select all

[Rainmeter]
Update=1000
Command1=!execute [!DisableMeasure "DeleteCase"]
[Metadata]

[Variables]
Button1=0
Button2=0
Button3=0
Button4=0
Button5=0
Button6=0
Button7=0
Button8=0
Button9=0

Input1=Test1
Input2=Test2
Input3=Test3
Input4=Test4
Input5=test5
Input6=
Input7=
Input8=
Input9=

GroupToggle=3

Font=Caviar Dreams

1=#@#Images\ToDo1.png
2=#@#Images\ToDo2.png

[TextStyle1]
FontFace=#Font#
FontColor=00BFFF
FontSize=13
StringEffect=Shadow
AntiAlias=1




[MeasureGroupToggle]
Measure=Calc
Formula=#GroupToggle#
Command1=!execute [!PauseMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideMeterGroup "1"][!HideMeterGroup "2"][!HideMeterGroup "3"][!HideMeterGroup "4"][!HideMeterGroup "5"][!HideMeterGroup "6"][!HideMeterGroup "7"][!HideMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!ShowMeterGroup "1"][!HideMeterGroup "2"][!HideMeterGroup "3"][!HideMeterGroup "4"][!HideMeterGroup "5"][!HideMeterGroup "6"][!HideMeterGroup "7"][!HideMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!ShowMeterGroup "1"][!ShowMeterGroup "2"][!HideMeterGroup "3"][!HideMeterGroup "4"][!HideMeterGroup "5"][!HideMeterGroup "6"][!HideMeterGroup "7"][!HideMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!ShowMeterGroup "1"][!ShowMeterGroup "2"][!ShowMeterGroup "3"][!HideMeterGroup "4"][!HideMeterGroup "5"][!HideMeterGroup "6"][!HideMeterGroup "7"][!HideMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!ShowMeterGroup "1"][!ShowMeterGroup "2"][!ShowMeterGroup "3"][!ShowMeterGroup "4"][!HideMeterGroup "5"][!HideMeterGroup "6"][!HideMeterGroup "7"][!HideMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!ShowMeterGroup "1"][!ShowMeterGroup "2"][!ShowMeterGroup "3"][!ShowMeterGroup "4"][!ShowMeterGroup "5"][!HideMeterGroup "6"][!HideMeterGroup "7"][!HideMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!ShowMeterGroup "1"][!ShowMeterGroup "2"][!ShowMeterGroup "3"][!ShowMeterGroup "4"][!ShowMeterGroup "5"][!ShowMeterGroup "6"][!HideMeterGroup "7"][!HideMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!ShowMeterGroup "1"][!ShowMeterGroup "2"][!ShowMeterGroup "3"][!ShowMeterGroup "4"][!ShowMeterGroup "5"][!ShowMeterGroup "6"][!ShowMeterGroup "7"][!HideMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!ShowMeterGroup "1"][!ShowMeterGroup "2"][!ShowMeterGroup "3"][!ShowMeterGroup "4"][!ShowMeterGroup "5"][!ShowMeterGroup "6"][!ShowMeterGroup "7"][!ShowMeterGroup "8"][!HideMeterGroup "9"][!Redraw]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!ShowMeterGroup "1"][!ShowMeterGroup "2"][!ShowMeterGroup "3"][!ShowMeterGroup "4"][!ShowMeterGroup "5"][!ShowMeterGroup "6"][!ShowMeterGroup "7"][!ShowMeterGroup "8"][!ShowMeterGroup "9"][!Redraw]

DynamicVariables=1

[DeleteCase]
Measure=Calc
IfCondition=(#Button1#=1)
IfTrueAction=!execute [!WriteKeyValue Variables Button1 "0"][!WriteKeyValue Variables Input1 "#Input2#"][!WriteKeyValue Variables Input2 "#Input3#"][!WriteKeyValue Variables Input3 "#Input4#"][!WriteKeyValue Variables Input4 "#Input5#"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition2=(#Button2#=1)
IfTrueAction2=!execute [!WriteKeyValue Variables Button2 "0"][!WriteKeyValue Variables Input2 "#Input3#"][!WriteKeyValue Variables Input3 "#Input4#"][!WriteKeyValue Variables Input4 "#Input5#"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition3=(#Button3#=1)
IfTrueAction3=!execute [!WriteKeyValue Variables Button3 "0"][!WriteKeyValue Variables Input3 "#Input4#"][!WriteKeyValue Variables Input4 "#Input5#"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition4=(#Button4#=1)
IfTrueAction4=!execute [!WriteKeyValue Variables Button4 "0"][!WriteKeyValue Variables Input4 "#Input5#"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition5=(#Button5#=1)
IfTrueAction5=!execute [!WriteKeyValue Variables Button5 "0"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition6=(#Button6#=1)
IfTrueAction6=!execute [!WriteKeyValue Variables Button6 "0"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition7=(#Button7#=1)
IfTrueAction7=!execute [!WriteKeyValue Variables Button7 "0"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition8=(#Button8#=1)
IfTrueAction8=!execute [!WriteKeyValue Variables Button8 "0"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition9=(#Button9#=1)
IfTrueAction9=!execute [!WriteKeyValue Variables Button9 "0"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]

[MeasureButton1]
Measure=Calc
Formula=#Button1#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button1 ButtonImage "#*1*#"][!UpdateMeter "Button1"][!Redraw]
IfFalseAction=[!SetOption Button1 ButtonImage "#*2*#"][!UpdateMeter "Button1"][!Redraw]
DynamicVariables=1

[MeasureButton2]
Measure=Calc
Formula=#Button2#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button2 ButtonImage "#*1*#"][!UpdateMeter "Button2"][!Redraw]
IfFalseAction=[!SetOption Button2 ButtonImage "#*2*#"][!UpdateMeter "Button2"][!Redraw]
DynamicVariables=1

[MeasureButton3]
Measure=Calc
Formula=#Button3#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button3 ButtonImage "#*1*#"][!UpdateMeter "Button3"][!Redraw]
IfFalseAction=[!SetOption Button3 ButtonImage "#*2*#"][!UpdateMeter "Button3"][!Redraw]
DynamicVariables=1

[MeasureButton4]
Measure=Calc
Formula=#Button4#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button4 ButtonImage "#*1*#"][!UpdateMeter "Button4"][!Redraw]
IfFalseAction=[!SetOption Button4 ButtonImage "#*2*#"][!UpdateMeter "Button4"][!Redraw]
DynamicVariables=1

[MeasureButton5]
Measure=Calc
Formula=#Button5#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button5 ButtonImage "#*1*#"][!UpdateMeter "Button5"][!Redraw]
IfFalseAction=[!SetOption Button5 ButtonImage "#*2*#"][!UpdateMeter "Button5"][!Redraw]
DynamicVariables=1

[MeasureButton6]
Measure=Calc
Formula=#Button6#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button6 ButtonImage "#*1*#"][!UpdateMeter "Button6"][!Redraw]
IfFalseAction=[!SetOption Button6 ButtonImage "#*2*#"][!UpdateMeter "Button6"][!Redraw]
DynamicVariables=1

[MeasureButton7]
Measure=Calc
Formula=#Button7#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button7 ButtonImage "#*1*#"][!UpdateMeter "Button7"][!Redraw]
IfFalseAction=[!SetOption Button7 ButtonImage "#*2*#"][!UpdateMeter "Button7"][!Redraw]
DynamicVariables=1

[MeasureButton8]
Measure=Calc
Formula=#Button8#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button8 ButtonImage "#*1*#"][!UpdateMeter "Button8"][!Redraw]
IfFalseAction=[!SetOption Button8 ButtonImage "#*2*#"][!UpdateMeter "Button8"][!Redraw]
DynamicVariables=1

[MeasureButton9]
Measure=Calc
Formula=#Button9#
Command1=!execute [!diableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption Button9 ButtonImage "#*1*#"][!UpdateMeter "Button9"][!Redraw]
IfFalseAction=[!SetOption Button9 ButtonImage "#*2*#"][!UpdateMeter "Button9"][!Redraw]
DynamicVariables=1


[UserInput1]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=22
w=185
h=22
DefaultValue=#Input1#
Command1=[!WriteKeyValue Variables Input1 "$UserInput$" ]
Command2=[!SetVariable Input1 "[UserInput1]"]

[UserInput2]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=44
w=185
h=22
DefaultValue=#Input2#
Command1=[!WriteKeyValue Variables Input2 "$UserInput$" ]
Command2=[!SetVariable Input2 "[UserInput2]"]

[UserInput3]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=70
w=185
h=22
DefaultValue=#Input3#
Command1=[!WriteKeyValue Variables Input3 "$UserInput$" ]
Command2=[!SetVariable Input3 "[UserInput3]"]

[UserInput4]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=97
w=185
h=22
DefaultValue=#Input4#
Command1=[!WriteKeyValue Variables Input4 "$UserInput$" ]
Command2=[!SetVariable Input4 "[UserInput4]"]

[UserInput5]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=122
w=185
h=22
DefaultValue=#Input5#
Command1=[!WriteKeyValue Variables Input5 "$UserInput$" ]
Command2=[!SetVariable Input5 "[UserInput5]"]

[UserInput6]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=149
w=185
h=22
DefaultValue=#Input6#
Command1=[!WriteKeyValue Variables Input6 "$UserInput$" ]
Command2=[!SetVariable Input6 "[UserInput6]"]

[UserInput7]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=174
w=185
h=22
DefaultValue=#Input7#
Command1=[!WriteKeyValue Variables Input7 "$UserInput$" ]
Command2=[!SetVariable Input7 "[UserInput7]"]

[UserInput8]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=200
w=185
h=22
DefaultValue=#Input8#
Command1=[!WriteKeyValue Variables Input8 "$UserInput$" ]
Command2=[!SetVariable Input8 "[UserInput8]"]

[UserInput9]
Measure=Plugin
Plugin=InputText
FontFace=#Font#
FontColor=255,255,255,255
Solidcolor=2b2610
FontSize=13
StringEffect=Shadow
x=20
y=228
w=185
h=22
DefaultValue=#Input9#
Command1=[!WriteKeyValue Variables Input9 "$UserInput$" ]
Command2=[!SetVariable Input9 "[UserInput9]"]


[Button1]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button1 "(1-#Button1#)"][!UpdateMeasure "MeasureButton1"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=1
Hidden=0
[Fond1]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=25
Group=1
MouseOverAction=[!ShowMeterGroup 1D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 1D][!Redraw]

[Button2]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22r
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button2 "(1-#Button2#)"][!UpdateMeasure "MeasureButton2"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=2
Hidden=0
[Fond2]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=2r
Group=2
MouseOverAction=[!ShowMeterGroup 2D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 2D][!Redraw]

[Button3]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22r
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button3 "(1-#Button3#)"][!UpdateMeasure "MeasureButton3"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=3
Hidden=0
[Fond3]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=2r
Group=3
MouseOverAction=[!ShowMeterGroup 3D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 3D][!Redraw]

[Button4]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22r
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button4 "(1-#Button4#)"][!UpdateMeasure "MeasureButton4"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=4
Hidden=0
[Fond4]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=2r
Group=4
MouseOverAction=[!ShowMeterGroup 4D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 4D][!Redraw]

[Button5]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22r
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button5 "(1-#Button5#)"][!UpdateMeasure "MeasureButton5"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=5
Hidden=0
[Fond5]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=2r
Group=5
MouseOverAction=[!ShowMeterGroup 5D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 5D][!Redraw]

[Button6]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22r
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button6 "(1-#Button6#)"][!UpdateMeasure "MeasureButton6"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=6
Hidden=0
[Fond6]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=2r
Group=6
MouseOverAction=[!ShowMeterGroup 6D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 6D][!Redraw]

[Button7]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22r
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button7 "(1-#Button7#)"][!UpdateMeasure "MeasureButton7"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=7
Hidden=0
[Fond7]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=2r
Group=7
MouseOverAction=[!ShowMeterGroup 7D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 7D][!Redraw]

[Button8]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22r
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button8 "(1-#Button8#)"][!UpdateMeasure "MeasureButton8"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=8
Hidden=0
[Fond8]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=2r
Group=8
MouseOverAction=[!ShowMeterGroup 8D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 8D][!Redraw]

[Button9]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22r
w=20
h=20
LeftMouseUpAction=!Execute [!WriteKeyValue Variables Button9 "(1-#Button9#)"][!UpdateMeasure "MeasureButton9"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=9
Hidden=0
[Fond9]
Meter=IMAGE
ImageName=#@#Images\dessous.png
x=0
y=2r
Group=9
MouseOverAction=[!ShowMeterGroup 9D][!Redraw] 
MouseLeaveAction=[!HideMeterGroup 9D][!Redraw]

[Text1]
Meter=String
Text=#Input1#
SolidColor=0,0,0,1
x=20
y=22
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput1" "ExecuteBatch 1-2"
DynamicVariables=1
Group=1
Hidden=0

[Text2]
Meter=String
Text=#Input2#
SolidColor=0,0,0,1
x=20
y=23r
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput2" "ExecuteBatch 1-2"
DynamicVariables=1
Group=2
Hidden=0

[Text3]
Meter=String
Text=#Input3#
SolidColor=0,0,0,1
x=20
y=25r
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput3" "ExecuteBatch 1-2"
DynamicVariables=1
Group=3
Hidden=0

[Text4]
Meter=String
Text=#Input4#
SolidColor=0,0,0,1
x=20
y=27r
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput4" "ExecuteBatch 1-2"
DynamicVariables=1
Group=4
Hidden=0

[Text5]
Meter=String
Text=#Input5#
SolidColor=0,0,0,1
x=20
y=27r
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput5" "ExecuteBatch 1-2"
DynamicVariables=1
Group=5
Hidden=0

[Text6]
Meter=String
Text=#Input6#
SolidColor=0,0,0,1
x=20
y=25r
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput6" "ExecuteBatch 1-2"
DynamicVariables=1
Group=6
Hidden=0

[Text7]
Meter=String
Text=#Input7#
SolidColor=0,0,0,1
x=20
y=25r
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput7" "ExecuteBatch 1-2"
DynamicVariables=1
Group=7
Hidden=0

[Text8]
Meter=String
Text=#Input8#
SolidColor=0,0,0,1
x=20
y=26r
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput8" "ExecuteBatch 1-2"
DynamicVariables=1
Group=8
Hidden=0

[Text9]
Meter=String
Text=#Input9#
SolidColor=0,0,0,1
x=20
y=24r
w=160
h=22
MeterStyle=TextStyle1
LeftMouseUpAction=!CommandMeasure "UserInput9" "ExecuteBatch 1-2"
DynamicVariables=1
Group=9
Hidden=0


[Plus]
Meter=String
Text="+"
SolidColor=0,0,0,1
x=0
y=0
MeterStyle=TextStyle1
LeftMouseUpAction=!Execute [!WriteKeyValue Variables GroupToggle "(#GroupToggle#+1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!refresh]
DynamicVariables=1

[Minus]
Meter=String
Text="-"
SolidColor=0,0,0,1
x=22r
y=0
MeterStyle=TextStyle1
LeftMouseUpAction=!Execute [!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!refresh]
DynamicVariables=1

[DeleteAll]
Meter=IMAGE
ImageName=#@#Images\Delete.png
hidden=1
x=44r
y=0
LeftMouseUpAction=!Execute [!UpdateMeasure "DeleteCase"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!refresh]
DynamicVariables=1
User avatar
balala
Rainmeter Sage
Posts: 8320
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Interlinked if or the way not to run a mesure

balala » April 9th, 2019, 7:41 pm

RNestaM wrote:
April 9th, 2019, 7:07 pm
i try with "!disablemeasure" But it doesn't wor
If here you thought to the Command1 option posted into the [Rainmeter] section or into the [MeasureButton1] - [MeasureButton9] measures, those don't work because a such option is valid ONLY on an InputText plugin measure, but not on [Rainmeter] or Calc measures, at all. Replace them with LeftMouseUpAction, which is a valid option on all those sections.
Note one more minor detail: !Execute is a deprecated bang. You shouldn't have to use it, so remove it everywhere where you've used it.
RNestaM
Posts: 12
Joined: April 9th, 2019, 5:59 pm

Re: Interlinked if or the way not to run a mesure

RNestaM » April 9th, 2019, 7:58 pm

Thanks, but still doesn't work :/
[DeleteCase]
Measure=Calc
IfCondition=(#Button1#=1)
IfTrueAction=[!WriteKeyValue Variables Button1 "0"][!WriteKeyValue Variables Input1 "#Input2#"][!WriteKeyValue Variables Input2 "#Input3#"][!WriteKeyValue Variables Input3 "#Input4#"][!WriteKeyValue Variables Input4 "#Input5#"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition2=(#Button2#=1)
IfTrueAction2=[!WriteKeyValue Variables Button2 "0"][!WriteKeyValue Variables Input2 "#Input3#"][!WriteKeyValue Variables Input3 "#Input4#"][!WriteKeyValue Variables Input4 "#Input5#"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition3=(#Button3#=1)
IfTrueAction3=[!WriteKeyValue Variables Button3 "0"][!WriteKeyValue Variables Input3 "#Input4#"][!WriteKeyValue Variables Input4 "#Input5#"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition4=(#Button4#=1)
IfTrueAction4=[!WriteKeyValue Variables Button4 "0"][!WriteKeyValue Variables Input4 "#Input5#"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition5=(#Button5#=1)
IfTrueAction5=[!WriteKeyValue Variables Button5 "0"][!WriteKeyValue Variables Input5 "#Input6#"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition6=(#Button6#=1)
IfTrueAction6=[!WriteKeyValue Variables Button6 "0"][!WriteKeyValue Variables Input6 "#Input7#"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition7=(#Button7#=1)
IfTrueAction7=[!WriteKeyValue Variables Button7 "0"][!WriteKeyValue Variables Input7 "#Input8#"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition8=(#Button8#=1)
IfTrueAction8=[!WriteKeyValue Variables Button8 "0"][!WriteKeyValue Variables Input8 "#Input9#"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]
IfCondition9=(#Button9#=1)
IfTrueAction9=[!WriteKeyValue Variables Button9 "0"][!WriteKeyValue Variables Input9 ""][!WriteKeyValue Variables GroupToggle "(#GroupToggle#-1)"][!UpdateMeasure "MeasureGroupToggle"][!UpdateMeter "Plus"][!UpdateMeter "Minus"][!Redraw]

[MeasureButton1]
Measure=Calc
Formula=#Button1#
LeftMouseUpAction=[!disableMeasure "DeleteCase"]
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!disableMeasure "DeleteCase"][!SetOption Button1 ButtonImage "#*1*#"][!UpdateMeter "Button1"][!Redraw]
IfFalseAction=[!disableMeasure "DeleteCase"][!SetOption Button1 ButtonImage "#*2*#"][!UpdateMeter "Button1"][!Redraw]
DynamicVariables=1

[Button1]
Meter=Button
;ButtonImage=#1#
SolidColor=0,0,0,1
x=0
y=22
w=20
h=20
LeftMouseUpAction=[!disableMeasure "DeleteCase"][!WriteKeyValue Variables Button1 "(1-#Button1#)"][!UpdateMeasure "MeasureButton1"][!UpdateMeter "#CURRENTSECTION#"][!refresh]
DynamicVariables=1
Group=1
Hidden=0
Tried like this...
User avatar
balala
Rainmeter Sage
Posts: 8320
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Interlinked if or the way not to run a mesure

balala » April 9th, 2019, 8:25 pm

I'm sorry, I made a huge mistake into my previous post. I suggested you to replace all Command1 options with LeftMouseUpAction. This was a stupid advice, because LeftMouseUpAction isn't permitted onto measures. You simply can't use them only on meters, but can't at all on measures. On the [Rainmeter] section it's alright, but not on measures.
User avatar
balala
Rainmeter Sage
Posts: 8320
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Interlinked if or the way not to run a mesure

balala » April 9th, 2019, 8:33 pm

Ok, the best would be you to pack the whole config you have and upload it. I'd need to check how does it works, having the needed resources as well.
A detailed description of what would you like to achieve would be also great. Yep, I know you've wrote once some things, but I'd need to understand what should happen when I click to +, or -, what the skin should have to remove or add and so on.
RNestaM
Posts: 12
Joined: April 9th, 2019, 5:59 pm

Re: Interlinked if or the way not to run a mesure

RNestaM » April 10th, 2019, 2:36 am

Ok, no problem.
Here the link : https://drive.google.com/file/d/1Vi76vwmLSSCHXQ89_LOjAWR_BnlGitai/view?usp=sharing

The code like it's in the package is working like i wanted in the first place: Each row have his own "delete cross" who appears on mouseover.

I want to go much futher and replace this feature for one more global.
What i want to do :
- Task done: i click on the checkbox. It makes the box checked but doesn't delete the row.
- When i'm ready to clean the list : I click on the delete cross aside the "+" and "-" for delete all the rows who are checked

Thank you very much
User avatar
balala
Rainmeter Sage
Posts: 8320
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Interlinked if or the way not to run a mesure

balala » April 10th, 2019, 4:09 pm

RNestaM wrote:
April 10th, 2019, 2:36 am
- Task done: i click on the checkbox. It makes the box checked but doesn't delete the row.
But if you click the cross on right side of the checked line, it does delete it. Not this is what you want? It should delete it, right when you check the box?
And note that those crosses delete the line even if it's not checked.
RNestaM wrote:
April 10th, 2019, 2:36 am
- When i'm ready to clean the list : I click on the delete cross aside the "+" and "-" for delete all the rows who are checked
I don't get that cross. Nor simply, nor if I'm hovering the mouse over the +, - buttons or anywhere else over the skin. Where is it?
RNestaM
Posts: 12
Joined: April 9th, 2019, 5:59 pm

Re: Interlinked if or the way not to run a mesure

RNestaM » April 10th, 2019, 5:03 pm

Nop, you have the code like i wanted to in the first place (a cross for each rows)

Now, i don't want those cross but only 1 who delete only the checked rows.

Enter in the .ini, you have the code of the measure and the button in quote (;) i tried for do this.