My variable "RickRoll" doesn't even change from 0 to 1 when I click the button, like I would expect it to do. Is there anyone that can figure out what's wrong with my code???
Thankful for any insight.
Code for the "button"
Code: Select all
[RainMeter]
Update = 1000
AccurateText = 1
SolidColor=0,0,0,1
OnRefreshAction=[!ZPos 1]
LeftMouseUpAction= !Execute[!UnpauseMeasureGroup "RickRolled"][!Update "#CURRENTCONFIG#"]
[variables]
@include=#@#RickRollVar.ini
[Metadata]
Name=RickRoll
Author=Vilger23
Information= Something Different
License=NaN
Version=1.0
[InvisibleButton]
Meter=Shape
Shape = Rectangle 0,30,30,30,30 | Fill Color 255,0,0,1 | StrokeWidth 0
MouseOverAction=[!SetOption "#CURRENTSECTION#" "Shape" "Rectangle 0,30,30,30,30 | Fill Color 255,0,0,1 | StrokeWidth 1 | Stroke Color #white#"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" "Shape" "Rectangle 0,30,30,30,30 | Fill Color 255,0,0,1 | StrokeWidth 0"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
[SetRickRoll]
Measure=CalC
Formal=#RickRoll#
group=RickRolled
paused=1
IfBelowValue= 1
IfValueAction=!Execute[!RainmeterWriteKeyValue "variables" "RickRoll" "1" "C:\Rainmeter\Skins\RickRoll\@Resources\RickRollVar.ini"][!Refresh "#CURRENTCONFIG#"][!PauseMeasureGroup "RickRolled"]
IfAboveValue = 0
IfValueAction = !Execute[!RainmeterWriteKeyValue "variables" "RickRoll" "0" "C:\Rainmeter\Skins\RickRoll\@Resources\RickRollVar.ini"][!Refresh "#CURRENTCONFIG#"][!PauseMeasureGroup "RickRolled"]
DynamicVariables=1
Code for the variables:
Code: Select all
[variables]
RickRoll = 0
Code for the Icons (In this case youtube):
Code: Select all
[variables]
@include = "C:\Rainmeter\Skins\RickRoll\@Resources\RickRollVar.ini"
[youtube]
Meter=Image
ImageName=#@#Images\youtube.png
H=90
[SetRickRoll]
Measure=CalC
Formula=#RickRoll#
IfAboveValue=0
IfAboveAction= !Execute["http://youtube.com/"][!PauseMeasureGoup "RickRolled"][!Refresh #CURRENTCONFIG#]
IfBelowValue=1
IfAboveAction= !Execute["https://www.youtube.com/watch?v=dQw4w9WgXcQ"][!PauseMeasureGoup "RickRolled"][!Refresh #CURRENTCONFIG#]
Group=RickRolled
Paused=1
[Rainmeter]
Update=1000
LeftMouseUpAction=!Execute[!UnpauseMeasureGroup "RickRolled"][!Refresh #CURRENTCONFIG#]
[Metadata]
Name=youtube
Author=APIUM
Information=
License=
Version=