Hello Everybody,
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:When you activate the skin with the above code, it is focused. This is stated on the second line of the skin (Focused) and the color of background (black for focused, red for unfocused). The state of the skin can be followed this way and it is proper as long as you don't click the Is this Focused? string, used to execute the InputText plugin, to enter a value from the keyboard. If you do this, the skin get stating it is unfocused, even if you can enter the value from the keyboard.
Is this normal?
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:
[Rainmeter]Update=1000OnFocusAction=[!SetVariable Focused "1"][!UpdateMeasure "MeasureFocused"]OnUnfocusAction=[!SetVariable Focused "0"][!UpdateMeasure "MeasureFocused"][Variables]First=Is this focused?FontSize=14Focused=1[MeasureFocused]Measure=CalcFormula=#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=ImageSolidColor=0,0,0,150W=250H=65[MeasureInput]Measure=PluginPlugin=InputTextSolidColor=118,160,232FontColor=255,255,255,255FontFace=Seqoe UIStringStyle=ItalicFontSize=#FontSize#X=5Y=5H=25W=240DefaultValue=Enter somethingCommand1=[!SetVariable First "$UserInput$"][!UpdateMeter "MeterFirst"][Redraw][MeterFirst]Meter=StringX=5Y=5FontSize=15FontColor=255,255,255,255AntiAlias=1Text=#First#LeftMouseUpAction=[!CommandMeasure "MeasureInput" "ExecuteBatch 1"]DynamicVariables=1[MeterState]Meter=StringX=0rY=5RFontSize=15FontColor=255,255,255,255AntiAlias=1
Is this normal?
Statistics: Posted by balala — Yesterday, 7:40 pm — Replies 4 — Views 167