The problem: This only works once. If I open a window, then the taskbar stays up, no matter how much I move my cursor on and off of it. When I close all windows, move my cursor to the taskbar and then back up, it is properly hidden, and the text meter displays 0, like it should. However, if I then move my cursor back down, and then off of it, the taskbar stays up, when it should be hidden again. The text meter continues to display 0 the entire time, so I'm really confused as to why the first zero is different from each subsequent zero.
This pattern continues, every time I open and then close a program, it will correctly hide once after that.
Code: Select all
[Rainmeter]
Update = -1
[Variables]
TopAlpha = 0
BottomAlpha = 150
TaskbarAlpha = 255
WinChecking = 0
[measureCheckWindows]
Measure = Plugin
Plugin = RunCommand
Parameter = ""D:/Documents/request30.exe""
FinishAction = [!UpdateMeasure measureSelectWindow] [!UpdateMeter MeterResult] [!Redraw]
DynamicVariables = 1
[measureSelectWindow]
Measure = Calc
Formula = [measureCheckWindows]
DynamicVariables = 1
IfCondition = (measureSelectWindow = 0)
IfTrueAction = [!SetVariable TaskbarAlpha 255][!SetVariable TopAlpha 0][!SetVariable BottomAlpha 150] [!UpdateMeter meterTaskbar][!UpdateMeter meterTop][!UpdateMeter meterBottom][!Redraw]
IfFalseAction = [!SetVariable TopAlpha 0][!SetVariable BottomAlpha 150] [!UpdateMeter meterTop][!UpdateMeter meterBottom][!Redraw]
[MeterResult]
Meter=String
MeasureName = measureCheckWindows
MeasureName2 = measureSelectWindow
Text = %1, %2
X = 0
Y = 0
FontSize=40
FontColor=255,255,255,255
AntiAlias=1
[meterTop]
Meter = Image
W = 1920
H = 1050
SolidColor = 0,0,0,#TopAlpha#
DynamicVariables = 1
MouseOverAction = [!SetVariable TopAlpha 0][!SetVariable BottomAlpha 150] [!CommandMeasure measureCheckWindows "Run"] [!UpdateMeter meterTop][!UpdateMeter meterBottom][!Redraw]
[meterBottom]
Meter = Image
W = 1920
H = 30
Y = 1050
SolidColor = 0,0,0,#BottomAlpha#
DynamicVariables = 1
MouseOverAction = [!SetVariable TopAlpha 150][!SetVariable BottomAlpha 0][!SetVariable TaskbarAlpha 0] [!UpdateMeter meterTop][!UpdateMeter meterBottom][!UpdateMeter meterTaskbar][!Redraw]
[meterTaskbar]
Meter = Image
ImageName = #@#Taskbar.png
Y = 1050
ImageAlpha = #TaskbarAlpha#
DynamicVariables = 1
Edit 2: I just found IfConditionMode and I think if I set that to 1 it should fix my problem. I'll mark this as solved if it does.
Edit 3: Yup, that fixed it.