Sample code from my actual skin.
skin.ini
Code: Select all
[Rainmeter]
Update=1000
OnRefreshAction=[!SetOptionGroup GrpCell LeftMouseUpAction """["#*CURRENTSECTION*#"]"""][!UpdateMeterGroup GrpCell][!Redraw]
[Variables]
@include=#@#Construction\core.inc
@include2=#@#Settings\timetable.inc
[TBL_11_TC_C]
Meter=Image
MeterStyle=CnsTblCell
[TBL_12_TC_C]
Meter=Image
MeterStyle=CnsTblCell
[TBL_13_TC_C]
Meter=Image
MeterStyle=CnsTblCell
core.inc
Code: Select all
[CnsTblCell]
DynamicVariables=1
UpdateDivider=-1
Group=GrpCell
timetable.inc
Code: Select all
[Variables]
TBL_11_TC_C=D:\
TBL_12_TC_C=D:\Documents
TBL_13_TC_C=D:\Study
Also, in the first post I was a bit wrong about:
Active Colors wrote:First case. Works:
Code: Select all
[Rainmeter]
OnRefreshAction=[!SetOptionGroup GrpCell SolidColor "#*CURRENTSECTION*#"]
This does not work. And it means that it has nothing to do with the brackets as stated above.
Anyways I still have not found an approach using OnRefreshAction.
ASIDE NOTE:
I actually found a working solution using OnUpdateAction in the meterstyle CnsTblCell but it involves double currentsection:
Code: Select all
[CnsTblCell]
OnUpdateAction=[!SetOptionGroup GrpCell LeftMouseUpAction """["##CURRENTSECTION##"]"""]
but I don't want it to be updated every second.
What I really need is to tell every meter from their group to set the leftmouseupaction a variable that called same as section from this group. And it should be done only once per refresh.