PS to Yincognito: I'll answer you in the other topic in the near
Anyway, I've already started working on the next skin for my suite today. But as the devil will have it, he's annoying me.
It's about the color of the button changing to green when Firefox is open. Another part of the button should also turn green, but even blink.
The part that should turn green and blink works. However, the "only" green part of the button does not turn green when Firefox is active.
My guess is that I probably have to work with "Nested Variables" here, but it's just a guess. This is due to the fact that before the color change such as the flashing of the button takes place, I exchange some values via the MouseOverAction and MouseLeaveAction, as well as LeftMouseUpAction.
This causes a problem somewhere, and I don't know why.
Anyway, if I have to work with "Nested Variables", then *cough* I think I should ask for a help example on a silver platter. Because I absolutely don't understand the "Nested Variables". Even some posts here in the forum or on the Rainmeter documentation page don't make me any smarter.
But before I write any more novels, here's the part of the code where the devil ruins my day
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
OnRefreshAction=[!EnableMeasureGroup mNAEX][!UpdateMeasureGroup mNAEX][!UpdateMeasureGroup mAPPCHECK][!UpdateMeterGroup ICONS][!UpdateMeterGroup BTNs][!Redraw][!Delay 500][!DisableMeasureGroup mNAEX]
[Variables]
Images1=#@#images\
Images2=#@#images\apps\
FontFace=Courier Prime Sans
FontWeight=700
Width=80
Height=14
W=110
H=317
FS3=12
Alpha0=1
Alpha1=70
Alpha2=130
Alpha3=255
Color0=0,0,0,
Color1=255,255,255,
Color2=253,193,0,
Color3=200,0,0,
Color4=64,64,64,
Color5=255,104,67,
Color6=0,255,0,
Color7=200,200,200,
Color8=15,255,168,
Color9=100,100,100,
Browser=C:\Program Files\Mozilla Firefox\firefox.exe
;============================================
;============================================
[StAPP1ICO]
ImageName=#Images2#[mAPP1].png
ImageTint=#Color0##Alpha1#
ImageAlpha=#Alpha2#
Greyscale=1
AntiAlias=1
W=44
H=44
UpdateDivider=-1
Container=CON_BTN1_ICO
Group=ICONS
[StAPP1LABEL]
Padding=0,-6,0,-5
SolidColor=#Color0##Alpha0#
FontColor=#Color7##Alpha2#
FontFace=#FontFace1#
FontWeight=#FontWeight#
FontSize=#FS3#
StringCase=UPPER
StringAlign=LEFT
Text=BROWSER
AntiAlias=1
ClipString=2
ClipStringW=#Width#
ClipStringH=#Height#
UpdateDivider=-1
Group=BTN1 | BTNs
;============================================
;============================================
[mAPP1]
Measure=STRING
String=#Browser#
RegExpSubstitute=1
Substitute="\\(.*)\\":"","^.:":"","...\D$":""
Disabled=1
Group=mNAEX
;=== MEASURES CHECK APP 1 ====================
[mAPP1CHECK]
Measure=PLUGIN
Plugin=Process
ProcessName=[mAPP1].exe
Substitute="-1":"#Color7#","1":"#Color6#"
IfCondition=(mAPP1Check = 1)
IfTrueAction= [!EnableMeasure mAPP1BTNFL][!UpdateMeasureGroup mAPPCHECK][!UpdateMeterGroup BTN1][!Redraw]
IfFalseAction=[!DisableMeasure mAPP1BTNFL][!UpdateMeasureGroup mAPPCHECK][!UpdateMeterGroup BTN1][!Redraw]
OnChangeAction=[!Update *]
DynamicVariables=1
Group=mAPPCHECK
[mAPP1BTNFL]
Measure=CALC
Formula=(1-mAPP1BTNFL)
Substitute="0":"#Alpha1#","1":"#Alpha3#"
Disabled=1
DynamicVariables=1
Group=mAPPCHECK
;==================================================
;=== CONTAINER FOR APP-LAUNCHER ===================
;==================================================
[CONTAINER_ALB]
Meter=IMAGE
SolidColor=#Color1##Alpha3#
W=#W#
H=#H#
X=0
Y=0
UpdateDivider=-1
;==================================================
;=== APP BUTTONS LAUNCHER =========================
;==================================================
;=== APP 1 BUTTON =================================
[APP1_BTN]
Meter=SHAPE
X=0
Y=0
Shape= Rectangle 1 ,1 ,100,40,0,0 | Extend FRAME
Shape2=Rectangle 3 ,3 ,96 ,36,0,0 | Extend BTNBG
Shape3=Rectangle 89 ,35,10 ,4,0,0 | Extend LED1
Shape4=Rectangle 106,0 ,4 ,42,0,0 | Extend LED1
FRAME=StrokeWidth 2 | Fill Color #Color0##Alpha0# | Stroke Color [mAPP1CHECK]#Alpha2#
BTNBG=StrokeWidth 0 | Fill Color [mAPP1CHECK]#Alpha1#
LED1 =StrokeWidth 0 | Fill Color [mAPP1CHECK][mAPP1BTNFL]
MouseOverAction= [!SetOption #CURRENTSECTION# FRAME "StrokeWidth 2 | Fill Color #Color0##Alpha0# | Stroke Color #Color2##Alpha3#"][!SetOption #CURRENTSECTION# BTNBG "StrokeWidth 0 | Fill Color #Color2##Alpha2#"][!SetOption APP1_LABEL FontColor "#Color0##Alpha3#"][!UpdateMeterGroup BTN1][!Redraw]
MouseLeaveAction= [!SetOption #CURRENTSECTION# FRAME "StrokeWidth 2 | Fill Color #Color0##Alpha0# | Stroke Color [mAPP1CHECK]#Alpha2#"][!SetOption #CURRENTSECTION# BTNBG "StrokeWidth 0 | Fill Color [mAPP1CHECK]#Alpha1#"][!SetOption APP1_LABEL FontColor "#Color7##Alpha2#"][!UpdateMeterGroup BTN1][!Redraw]
LeftMouseUpAction=[!CommandMeasure VoiceOutput "#BrowserSpeech#"][!Delay 1000]["#Browser#"]
UpdateDivider=1
DynamicVariables=1
Container=CONTAINER_ALB
Group=BTN1 | BNTs
[CON_BTN1_ICO]
Meter=SHAPE
X=r
Y=r
Shape= Rectangle 3 ,3 ,96 ,36,0,0 | Extend BTNBG
BTNBG=StrokeWidth 0 | Fill Color #Color7##Alpha1#
UpdateDivider=-1
DynamicVariables=1
[APP1_ICO]
Meter=IMAGE
MeterStyle=StAPP1ICO
X=r
Y=r
[APP1_LABEL]
Meter=STRING
MeterStyle=StAPP1LABEL
X=10r
Y=16r
The color values are exchanged by said mouse actions, where it ultimately does not work that the Extend FRAME and Extend BTNBG have the green color value, as well as the flashing when Firefox is open.
Ok, I hope I have described my problem as well as I can. If not -> <- get out and ask me
On end of this Post is an screenshot. There you can see that the Extend LED1 Shapes are green (and also blinking ... of course not in the screenshot )
BUT the button itself remains gray.
Here the Extend FRAME and Extend BTNBG should now also color them green, but this does NOT happen.