Just found something which I can't deal with. It is definitely something weird, maybe there is a reasonable explanation, but I couldn't find it, so maybe some one has an idea.
Issue: when I click the meter on which is set the !CommandMeasure bang of an InputText plugin measure, with the ExecuteBatch, the skin gets unfocused, even if has been clicked and I can enter the desired value. When hit Enter, the skin gets focused again, however while entering the value from the keyboard, the skin stays unfocused. Is this the desired behaviour?
Example code:
Code: Select all
[Rainmeter]
Update=1000
OnFocusAction=[!SetVariable Focused "1"][!UpdateMeasure "MeasureFocused"]
OnUnfocusAction=[!SetVariable Focused "0"][!UpdateMeasure "MeasureFocused"]
[Variables]
First=Is this focused?
FontSize=14
Focused=1
[MeasureFocused]
Measure=Calc
Formula=#Focused#
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!SetOption MeterState Text "Focused"][!SetOption MeterBackground SolidColor "0,0,0,150"][!UpdateMeter "MeterState"][!UpdateMeter "MeterBackground"][!Redraw]
IfFalseAction=[!SetOption MeterState Text "Unfocused"][!SetOption MeterBackground SolidColor "255,0,0,150"][!UpdateMeter "MeterState"][!UpdateMeter "MeterBackground"][!Redraw]
DynamicVariables=1
[MeterBackground]
Meter=Image
SolidColor=0,0,0,150
W=250
H=65
[MeasureInput]
Measure=Plugin
Plugin=InputText
SolidColor=118,160,232
FontColor=255,255,255,255
FontFace=Seqoe UI
StringStyle=Italic
FontSize=#FontSize#
X=5
Y=5
H=25
W=240
DefaultValue=Enter something
Command1=[!SetVariable First "$UserInput$"][!UpdateMeter "MeterFirst"][Redraw]
[MeterFirst]
Meter=String
X=5
Y=5
FontSize=15
FontColor=255,255,255,255
AntiAlias=1
Text=#First#
LeftMouseUpAction=[!CommandMeasure "MeasureInput" "ExecuteBatch 1"]
DynamicVariables=1
[MeterState]
Meter=String
X=0r
Y=5R
FontSize=15
FontColor=255,255,255,255
AntiAlias=1
Is this normal?