didn't work for me, there was no change. I'm probably going to change this search function to open a different skinIf even after jsmorley's, Yincognito's and my recommendations, you still want to deactivate the skin when you leave it, but this should happen only when the InputText box is not active, you can do the followings:Even if this works as you asked for (I hope), I still sustain this doesn't really make sense. Does it?
- Add two variable to the [Variables] section. Let's name them Close and Close2:
Don't remove the existing variables, just add these new ones beside them.Code:
[Variables]...Close=0Close2=0
From these variables, Close will be set to 1 when you leave the skin, while Close2 when you enter a value to the search box and hit Enter (see below).- To set the value of the Close variable, replace the MouseOverAction option of the [Rainmeter] section and add the following MouseLeaveAction option to the same section:
Code:
[Rainmeter]...MouseOverAction=[!SetVariable Close "0"][!UpdateMeasure "MeasureClose"]MouseLeaveAction=[!SetVariable Close "1"][!UpdateMeasure "MeasureClose"]
- The value of the Close2 variable is controled through the following options. Add / replace them, as it follows:
As you can see I added a third, Command3 option to the [MeasureSearchInput] measure. Keep unchanged the existing Command1 and Command2 options. To get executed the new Command3 as well, I added the execution of this command to the !CommandMeasure bang of the LeftMouseUpAction option of the [SearchBox] measure.Code:
[SearchBox]...LeftMouseUpAction=[!SetVariable Close2 "0"][!CommandMeasure "MeasureSearchInput" "ExecuteBatch 1-3"][!UpdateMeasure "MeasureClose"][MeasureSearchInput]...Command3=[!SetVariable Close2 "1"][!UpdateMeasure "MeasureClose"]
- Finally add the [MeasureClose] measure, which has been updated by !UpdateMeasure bangs, but it didn't exist so far:
Code:
[MeasureClose]Measure=CalcFormula=( #Close# * #Close2# )IfCondition=(#CURRENTSECTION#>0)IfTrueAction=[!DeactivateConfig "MD3 Windows\menu" "startmenu-lightv2.ini"]DynamicVariables=1
Statistics: Posted by banana — Yesterday, 8:43 pm