Background image with a cutted shape with size of textinput
+
Meter [Box] with text, when TextInput is inactive
+
Meter [SearchButtonInput] with TextInput, that supposed to hide Meter [Box] then I click on it to type in.
I know its not a big deal BUT the background image have 50% opacity, both of meters have also 50% opacity, and when [SearchButtonInput] is active, the [Box] don't want to hide, causing 100% opacity total.
My code:
Code: Select all
[Variables]
Step=1
[MeasureAnimation]
Measure=CALC
Formula=(( MeasureAnimation + #Step# ) % 8 )
Paused=1
IfCondition=((MeasureAnimation=0)||(MeasureAnimation=7))
IfTrueAction=[!PauseMeasure MeasureAnimation]
DynamicVariables=1
[MeterAnimation]
Meter=BITMAP
MeasureName=MeasureAnimation
BitmapImage=#@#Images\search.png
BitmapFrames=8
BitmapExtend=1
MouseOverAction=[!SetVariable Step "1"][!UnpauseMeasure "MeasureAnimation"]
MouseLeaveAction=[!SetVariable Step "-1"][!UnpauseMeasure "MeasureAnimation"]
[Box]
Meter=String
X=46
Y=14
W=456
H=23
StringAlign=Left
FontSize=14
FontFace=Ubuntu
FontColor=140,140,140
SolidColor=255,255,255,130
Text=Search...
LeftMouseUpAction=[!CommandMeasure SearchButtonInput "ExecuteBatch 1-2"]
[SearchButtonInput]
Meter=String
Measure=Plugin
Plugin=InputText.dll
StringAlign=Left
W=456
H=23
X=46
Y=14
FontColor=0,0,0
FontSize=14
FontFace=Ubuntu
BackgroundMode=1
SolidColor=255,255,255,130
DefaultValue=""
Command1=["Explorer" "search-ms:query=$UserInput$"] DefaultValue="Search..."
LeftMouseDownAction=!HideMeter "Box"
[Rainmeter]
Update=50
AccurateText=1
DynamicWindowSize=1
[Metadata]
Name=search
Author=
Information=
License=
Version=
I tried to:
Code: Select all
OnFocusAction=[!SetOption Box SolidColor "255,255,255,0"]