i started from scratch to clean up my skin.
thanks to jsmorley for pointing out my code was a mess, as i new it. I tend to rush to get it working, without really knowing whats going on. i still don't know a lot, but feel my skin should run smoother. can someone have a look and see if i have some bad formatting or ways i cloud clean it up even more? just asking.
i do have lots of questions and would like to add more things but that i will do in time.
one question i have is, can i have an option in the context menu to adjust the alpha of an image?
i have been reading and came across bangs, not sure if that would produce the transparent(alpha) affect with an image.
[Rainmeter]
Author=HackitZ TDW
Version=2.21
Update=900
DynamicWindowSize=1
AccurateText=1
ContextTitle=Set Location Code
ContextAction=["#@#Variables.inc"]
;------------for testing alignment
;BackgroundMode=2
;------------------------------end
ContextTitle2=> Location Color
;ContextAction2=["#@#Addons\RainRGB4.exe" "VarName=Location" "FileName=#@#Variables.inc"]
ContextAction2=["#@#Addons\RainRGB4.exe" "VarName=Location" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle3=> Clock Background Color
;ContextAction3=["#@#Addons\RainRGB4.exe" "VarName=ClockBFace" "FileName=#@#Variables.inc"]
ContextAction3=["#@#Addons\RainRGB4.exe" "VarName=ClockBFace" "FileName=#@#Variables.inc" "Alpha=125" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle4=> Clock Color
;ContextAction4=["#@#Addons\RainRGB4.exe" "VarName=ClockFace" "FileName=#@#Variables.inc"]
ContextAction4=["#@#Addons\RainRGB4.exe" "VarName=ClockFace" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle5=> Date Color
;ContextAction5=["#@#Addons\RainRGB4.exe" "VarName=Date" "FileName=#@#Variables.inc"]
ContextAction5=["#@#Addons\RainRGB4.exe" "VarName=Date" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle6=> Current Temp Color
;ContextAction6=["#@#Addons\RainRGB4.exe" "VarName=CurrentTemp" "FileName=#@#Variables.inc"]
ContextAction6=["#@#Addons\RainRGB4.exe" "VarName=CurrentTemp" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle7=> Temp HI/LOW Color
;ContextAction7=["#@#Addons\RainRGB4.exe" "VarName=Temphilow" "FileName=#@#Variables.inc"]
ContextAction7=["#@#Addons\RainRGB4.exe" "VarName=Temphilow" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle8=> Extended Weather
;ContextAction8=["#@#Addons\RainRGB4.exe" "VarName=ExtendedWeather" "FileName=#@#Variables.inc"]
ContextAction8=["#@#Addons\RainRGB4.exe" "VarName=ExtendedWeather" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle9=> Seconds Bar
;ContextAction9=["#@#Addons\RainRGB4.exe" "VarName=SecondsBar" "FileName=#@#Variables.inc"]
ContextAction9=["#@#Addons\RainRGB4.exe" "VarName=SecondsBar" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle10=Set Imperial Units
ContextAction10=[!WriteKeyValue Variables Language "en-US" "#@#Variables.inc"][!Refresh]
ContextTitle11=Set Metric Units
ContextAction11=[!WriteKeyValue Variables Language "en-GB" "#@#Variables.inc"][!Refresh]
[Variables]
@Include=#@#Variables.inc
@Include1=#@#WeatherComVariables.inc
@Include2=#@#WeatherComRegExp.inc
@Include3=#@#WeatherComCurrent.inc
@Include4=#@#WeatherComForecast.inc
;@Include5=#@#WeatherCom36Hours.inc
[MeasureGotTheData]
Measure=String
String=[@CurrentLocationName]
DynamicVariables=1
IfMatch=^$
IfNotMatchAction=[!HideMeter MeterReticulating][!ShowMeterGroup AllMeters][!Update]
; Overrides a template measure
[NewCurrentTemperatureLow]
Measure=String
Group=Weather
String=[@CurrentTemperatureLow]
DynamicVariables=1
; Note that after some point in the afternoon, there will
; be NO Low Temperature returned. The High Temperature
; returned will then be the "low" from the current time until
; midnight of the same day.
; This can be tested with:
IfMatch=^$
IfMatchAction=[!SetOption MeterTodayHighLow Text "Low Tonight %1%2"]
IfNotMatchAction=[!SetOption MeterTodayHighLow Text "%1%2 | %3%4"]
; Meters
[MeterReticulating]
Meter=String
X=175
Y=75
StringAlign=Center
FontSize=15
FontWeight=600
FontColor=255,255,255,255
SolidColor=0,0,0,1
Padding=5,5,5,5
StringEffect=SHADOW
AntiAlias=1
Text=Updating One Sec ...
[MeterCurrentIcon]
Meter=Image
Group=AllMeters
MeasureName=@CurrentIcon
ImagePath=#@#Weathericons\
X=0
Y=-30
h=225
w=225
StringAlign=left
ImageAlpha=225
PreserveAspectRatio=1
AntiAlias=1
Hidden=1
[MeterLocationCurrent]
MeasureName=@CurrentLocationName
Meter=String
Group=AllMeters
X=25
Y=20
FontFace=Walkway Expand Black
FontColor=#Location#
FontSize=16
FontWeight=400
StringAlign=left
StringStyle=Italic
StringEffect=SHADOW
AntiAlias=1
ClipString=1
Hidden=1
;--------------------------------time
[MeasureTime]
Measure=Time
Format=%I:%M
FontName=Digital
FontName2=DS-Digital
[MeterTimeBack]
MeasureName=MeasureTime
Meter=STRING
Group=AllMeters
X=105
Y=40
FontFace=Digital
FontColor=#ClockBFace#
FontSize=52
StringAlign=left
AntiAlias=1
Text="88:88"
Hidden=1
[MeterTime]
MeasureName=MeasureTime
Meter=STRING
Group=AllMeters
X=r
Y=r
FontFace=Digital
FontColor=#ClockFace#
FontSize=52
StringEffect=SHADOW
StringEffect=BORDER
StringAlign=left
AntiAlias=1
Hidden=1
;----------------------------------date
[MeasureDate]
Measure=Time
Format=%B %d, %A, %Y.
[MeterDate]
MeasureName=MeasureDate
Meter=STRING
Group=AllMeters
X=175
Y=90
FontFace=Walkway Expand Black
FontColor=#Date#
FontSize=16
FontWeight=300
StringEffect=SHADOW
StringAlign=left
AntiAlias=1
Hidden=1
[MeterCurrentTemperature]
Meter=String
Group=AllMeters
MeasureName=@CurrentTemperature
MeasureName2=@CurrentConditions
MeasureName2=@CurrentTemperatureSymbol
MeasureName3=@CurrentTemperatureUnit
X=90r
Y=115
FontFace=Walkway Expand Black
FontColor=#CurrentTemp#
FontSize=14
FontWeight=300
StringAlign=left
StringEffect=SHADOW
AntiAlias=1
Hidden=1
Postfix="°"
Text=%2, %1
Hidden=1
[MeterTodayHighLow]
Meter=String
Group=AllMeters
MeasureName=@CurrentTemperatureHigh
MeasureName2=@CurrentTemperatureHighSymbol
MeasureName3=@CurrentTemperatureLow
MeasureName4=@CurrentTemperatureLowSymbol
X=-170r
Y=5r
StringAlign=left
FontFace=Walkway Expand Black
FontSize=12
FontWeight=300
FontColor=#Temphilow#
StringEffect=SHADOW
AntiAlias=1
Hidden=1
;--------------------------- seconds bar
[MeasureSeconds]
Measure=Time
Format=%S
MaxValue=59
[MeterLine1]
Group=AllMeters
Meter=Image
X=80
Y=140
H=2
W=320
StringAlign=left
SolidColor=68,68,68,200
Hidden=1
[MeterSeconds]
MeasureName=MeasureSeconds
Meter=BAR
Group=AllMeters
X=r
Y=r
H=2
W=320
StringAlign=left
BarColor=#SecondsBar#
SolidColor=255,255,255,225
BarOrientation=HORIZONTAL
Hidden=1
;----------------------------------begin-day2
[@ForecastDay2Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=8
IfAboveValue=1
IfAboveAction=[!HideMeter MeterDay2IconNA][!ShowMeter MeterDay2Icon]
[MeterDay2Icon]
Path=#@#Weathericons
MeasureName=@ForecastDay2Icon
Group=AllMeters
Meter=Image
PreserveAspectRatio=1
StringAlign=Left
AntiAlias=1
X=95
Y=130
H=75
W=75
Hidden=1
[MeterTempDay2]
MeasureName=@ForecastDay2Name
MeasureName2=@ForecastDay2High
Group=AllMeters
Meter=String
X=80
Y=143
FontFace=bahnschrift
FontColor=#ExtendedWeather#
FontSize=9
FontWeight=300
StringAlign=Left
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
Hidden=1
;----------------------------------begin-day3
[@ForecastDay3Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=18
IfAboveValue=1
IfAboveAction=[!HideMeter MeterDay3IconNA][!ShowMeter MeterDay3Icon]
[MeterDay3Icon]
Path=#@#Weathericons
MeasureName=@ForecastDay3Icon
Group=AllMeters
Meter=Image
PreserveAspectRatio=1
AntiAlias=1
X=205
Y=130
H=75
W=75
Hidden=1
[MeterTempDay3]
MeasureName=@ForecastDay3Name
MeasureName2=@ForecastDay3High
Group=AllMeters
Meter=String
X=170
Y=143
FontFace=bahnschrift
FontColor=#ExtendedWeather#
FontSize=9
FontWeight=300
StringAlign=Left
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
Hidden=1
;----------------------------------begin-day4
[@ForecastDay4Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=18
IfAboveValue=1
IfAboveAction=[!HideMeter MeterDay4IconNA][!ShowMeter MeterDay4Icon]
[MeterDay4Icon]
Path=#@#Weathericons
MeasureName=@ForecastDay4Icon
Group=AllMeters
Meter=Image
PreserveAspectRatio=1
AntiAlias=1
X=325
Y=130
H=75
W=75
Hidden=1
[MeterTempDay4]
MeasureName=@ForecastDay4Name
MeasureName2=@ForecastDay4High
Group=AllMeters
Meter=String
X=295
Y=143
FontFace=bahnschrift
FontColor=#ExtendedWeather#
FontSize=9
FontWeight=300
StringAlign=Left
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
Hidden=1
Author=HackitZ TDW
Version=2.21
Update=900
DynamicWindowSize=1
AccurateText=1
ContextTitle=Set Location Code
ContextAction=["#@#Variables.inc"]
;------------for testing alignment
;BackgroundMode=2
;------------------------------end
ContextTitle2=> Location Color
;ContextAction2=["#@#Addons\RainRGB4.exe" "VarName=Location" "FileName=#@#Variables.inc"]
ContextAction2=["#@#Addons\RainRGB4.exe" "VarName=Location" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle3=> Clock Background Color
;ContextAction3=["#@#Addons\RainRGB4.exe" "VarName=ClockBFace" "FileName=#@#Variables.inc"]
ContextAction3=["#@#Addons\RainRGB4.exe" "VarName=ClockBFace" "FileName=#@#Variables.inc" "Alpha=125" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle4=> Clock Color
;ContextAction4=["#@#Addons\RainRGB4.exe" "VarName=ClockFace" "FileName=#@#Variables.inc"]
ContextAction4=["#@#Addons\RainRGB4.exe" "VarName=ClockFace" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle5=> Date Color
;ContextAction5=["#@#Addons\RainRGB4.exe" "VarName=Date" "FileName=#@#Variables.inc"]
ContextAction5=["#@#Addons\RainRGB4.exe" "VarName=Date" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle6=> Current Temp Color
;ContextAction6=["#@#Addons\RainRGB4.exe" "VarName=CurrentTemp" "FileName=#@#Variables.inc"]
ContextAction6=["#@#Addons\RainRGB4.exe" "VarName=CurrentTemp" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle7=> Temp HI/LOW Color
;ContextAction7=["#@#Addons\RainRGB4.exe" "VarName=Temphilow" "FileName=#@#Variables.inc"]
ContextAction7=["#@#Addons\RainRGB4.exe" "VarName=Temphilow" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle8=> Extended Weather
;ContextAction8=["#@#Addons\RainRGB4.exe" "VarName=ExtendedWeather" "FileName=#@#Variables.inc"]
ContextAction8=["#@#Addons\RainRGB4.exe" "VarName=ExtendedWeather" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle9=> Seconds Bar
;ContextAction9=["#@#Addons\RainRGB4.exe" "VarName=SecondsBar" "FileName=#@#Variables.inc"]
ContextAction9=["#@#Addons\RainRGB4.exe" "VarName=SecondsBar" "FileName=#@#Variables.inc" "RefreshConfig=#CURRENTCONFIG#"]
ContextTitle10=Set Imperial Units
ContextAction10=[!WriteKeyValue Variables Language "en-US" "#@#Variables.inc"][!Refresh]
ContextTitle11=Set Metric Units
ContextAction11=[!WriteKeyValue Variables Language "en-GB" "#@#Variables.inc"][!Refresh]
[Variables]
@Include=#@#Variables.inc
@Include1=#@#WeatherComVariables.inc
@Include2=#@#WeatherComRegExp.inc
@Include3=#@#WeatherComCurrent.inc
@Include4=#@#WeatherComForecast.inc
;@Include5=#@#WeatherCom36Hours.inc
[MeasureGotTheData]
Measure=String
String=[@CurrentLocationName]
DynamicVariables=1
IfMatch=^$
IfNotMatchAction=[!HideMeter MeterReticulating][!ShowMeterGroup AllMeters][!Update]
; Overrides a template measure
[NewCurrentTemperatureLow]
Measure=String
Group=Weather
String=[@CurrentTemperatureLow]
DynamicVariables=1
; Note that after some point in the afternoon, there will
; be NO Low Temperature returned. The High Temperature
; returned will then be the "low" from the current time until
; midnight of the same day.
; This can be tested with:
IfMatch=^$
IfMatchAction=[!SetOption MeterTodayHighLow Text "Low Tonight %1%2"]
IfNotMatchAction=[!SetOption MeterTodayHighLow Text "%1%2 | %3%4"]
; Meters
[MeterReticulating]
Meter=String
X=175
Y=75
StringAlign=Center
FontSize=15
FontWeight=600
FontColor=255,255,255,255
SolidColor=0,0,0,1
Padding=5,5,5,5
StringEffect=SHADOW
AntiAlias=1
Text=Updating One Sec ...
[MeterCurrentIcon]
Meter=Image
Group=AllMeters
MeasureName=@CurrentIcon
ImagePath=#@#Weathericons\
X=0
Y=-30
h=225
w=225
StringAlign=left
ImageAlpha=225
PreserveAspectRatio=1
AntiAlias=1
Hidden=1
[MeterLocationCurrent]
MeasureName=@CurrentLocationName
Meter=String
Group=AllMeters
X=25
Y=20
FontFace=Walkway Expand Black
FontColor=#Location#
FontSize=16
FontWeight=400
StringAlign=left
StringStyle=Italic
StringEffect=SHADOW
AntiAlias=1
ClipString=1
Hidden=1
;--------------------------------time
[MeasureTime]
Measure=Time
Format=%I:%M
FontName=Digital
FontName2=DS-Digital
[MeterTimeBack]
MeasureName=MeasureTime
Meter=STRING
Group=AllMeters
X=105
Y=40
FontFace=Digital
FontColor=#ClockBFace#
FontSize=52
StringAlign=left
AntiAlias=1
Text="88:88"
Hidden=1
[MeterTime]
MeasureName=MeasureTime
Meter=STRING
Group=AllMeters
X=r
Y=r
FontFace=Digital
FontColor=#ClockFace#
FontSize=52
StringEffect=SHADOW
StringEffect=BORDER
StringAlign=left
AntiAlias=1
Hidden=1
;----------------------------------date
[MeasureDate]
Measure=Time
Format=%B %d, %A, %Y.
[MeterDate]
MeasureName=MeasureDate
Meter=STRING
Group=AllMeters
X=175
Y=90
FontFace=Walkway Expand Black
FontColor=#Date#
FontSize=16
FontWeight=300
StringEffect=SHADOW
StringAlign=left
AntiAlias=1
Hidden=1
[MeterCurrentTemperature]
Meter=String
Group=AllMeters
MeasureName=@CurrentTemperature
MeasureName2=@CurrentConditions
MeasureName2=@CurrentTemperatureSymbol
MeasureName3=@CurrentTemperatureUnit
X=90r
Y=115
FontFace=Walkway Expand Black
FontColor=#CurrentTemp#
FontSize=14
FontWeight=300
StringAlign=left
StringEffect=SHADOW
AntiAlias=1
Hidden=1
Postfix="°"
Text=%2, %1
Hidden=1
[MeterTodayHighLow]
Meter=String
Group=AllMeters
MeasureName=@CurrentTemperatureHigh
MeasureName2=@CurrentTemperatureHighSymbol
MeasureName3=@CurrentTemperatureLow
MeasureName4=@CurrentTemperatureLowSymbol
X=-170r
Y=5r
StringAlign=left
FontFace=Walkway Expand Black
FontSize=12
FontWeight=300
FontColor=#Temphilow#
StringEffect=SHADOW
AntiAlias=1
Hidden=1
;--------------------------- seconds bar
[MeasureSeconds]
Measure=Time
Format=%S
MaxValue=59
[MeterLine1]
Group=AllMeters
Meter=Image
X=80
Y=140
H=2
W=320
StringAlign=left
SolidColor=68,68,68,200
Hidden=1
[MeterSeconds]
MeasureName=MeasureSeconds
Meter=BAR
Group=AllMeters
X=r
Y=r
H=2
W=320
StringAlign=left
BarColor=#SecondsBar#
SolidColor=255,255,255,225
BarOrientation=HORIZONTAL
Hidden=1
;----------------------------------begin-day2
[@ForecastDay2Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=8
IfAboveValue=1
IfAboveAction=[!HideMeter MeterDay2IconNA][!ShowMeter MeterDay2Icon]
[MeterDay2Icon]
Path=#@#Weathericons
MeasureName=@ForecastDay2Icon
Group=AllMeters
Meter=Image
PreserveAspectRatio=1
StringAlign=Left
AntiAlias=1
X=95
Y=130
H=75
W=75
Hidden=1
[MeterTempDay2]
MeasureName=@ForecastDay2Name
MeasureName2=@ForecastDay2High
Group=AllMeters
Meter=String
X=80
Y=143
FontFace=bahnschrift
FontColor=#ExtendedWeather#
FontSize=9
FontWeight=300
StringAlign=Left
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
Hidden=1
;----------------------------------begin-day3
[@ForecastDay3Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=18
IfAboveValue=1
IfAboveAction=[!HideMeter MeterDay3IconNA][!ShowMeter MeterDay3Icon]
[MeterDay3Icon]
Path=#@#Weathericons
MeasureName=@ForecastDay3Icon
Group=AllMeters
Meter=Image
PreserveAspectRatio=1
AntiAlias=1
X=205
Y=130
H=75
W=75
Hidden=1
[MeterTempDay3]
MeasureName=@ForecastDay3Name
MeasureName2=@ForecastDay3High
Group=AllMeters
Meter=String
X=170
Y=143
FontFace=bahnschrift
FontColor=#ExtendedWeather#
FontSize=9
FontWeight=300
StringAlign=Left
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
Hidden=1
;----------------------------------begin-day4
[@ForecastDay4Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=18
IfAboveValue=1
IfAboveAction=[!HideMeter MeterDay4IconNA][!ShowMeter MeterDay4Icon]
[MeterDay4Icon]
Path=#@#Weathericons
MeasureName=@ForecastDay4Icon
Group=AllMeters
Meter=Image
PreserveAspectRatio=1
AntiAlias=1
X=325
Y=130
H=75
W=75
Hidden=1
[MeterTempDay4]
MeasureName=@ForecastDay4Name
MeasureName2=@ForecastDay4High
Group=AllMeters
Meter=String
X=295
Y=143
FontFace=bahnschrift
FontColor=#ExtendedWeather#
FontSize=9
FontWeight=300
StringAlign=Left
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
Hidden=1