Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1485

Help: Rainmeter Skins • Re: how to prevent mouseleaveaction when over text box

$
0
0
If 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:
  • Add two variable to the [Variables] section. Let's name them Close and Close2:

    Code:

    [Variables]...Close=0Close2=0
    Don't remove the existing variables, just add these new ones beside them.
    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:

    Code:

    [SearchBox]...LeftMouseUpAction=[!SetVariable Close2 "0"][!CommandMeasure "MeasureSearchInput" "ExecuteBatch 1-3"][!UpdateMeasure "MeasureClose"][MeasureSearchInput]...Command3=[!SetVariable Close2 "1"][!UpdateMeasure "MeasureClose"]
    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.
  • 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
Even if this works as you asked for (I hope), I still sustain this doesn't really make sense. Does it?
didn't work for me, there was no change. I'm probably going to change this search function to open a different skin

Statistics: Posted by banana — Yesterday, 8:43 pm



Viewing all articles
Browse latest Browse all 1485

Trending Articles