Here is the, let's say, re-updated code:xenium wrote:Updated code :
Code: Select all
[Rainmeter]
Update=-1
[Variables]
@include=#@#Location.inc
[MeterBg]
Meter=Shape
X=0
Y=0
Shape=Rectangle 1,1,800,40 | Fill Color 13,13,13 | Stroke Color 255,255,255,255
[MeterBg2]
Meter=Shape
X=0
Y=40
Shape=Rectangle 1,1,800,300 | Fill Color 32,64,132 | Stroke Color 255,255,255,255
[MeterLocation]
Meter=Shape
X=25
Y=190
Shape=Rectangle 1,1,750,30 | Fill Color 0,0,0,1 | Stroke Color 255,255,255,255
LeftMouseUpAction=[!CommandMeasure "MeterInput" "ExecuteBatch 1"]
[MeterClose]
Meter=Shape
X=325
Y=277
Shape=Rectangle 1,1,150,30 | Fill Color 0,0,0,1 | Stroke Color 255,255,255,255
[MeterTitle]
Meter=String
StringAlign=Centercenter
FontFace=century gothic
FontColor=255,255,255
StringStyle=Bold
FontSize=15
X=400
Y=22
Text=SETTINGS : LOCATION
AntiAlias=1
[MeterInstruction1]
Meter=String
StringAlign=Left
FontFace=century gothic
FontColor=255,255,255
FontSize=12
X=40
Y=80
Text=1.Go to website Foreca.com >>>
InlinePattern=Foreca.com
MouseOverAction=[!SetOption #CURRENTSECTION# InlineSetting "Underline"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# InlineSetting "None"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
LeftMouseUpAction=["https://www.foreca.com/"]
AntiAlias=1
[MeterInstruction2]
Meter=String
StringAlign=Left
FontFace=century gothic
FontColor=255,255,255
FontSize=12
X=0r
Y=-2R
Text=2.Write the name of the city and select it from the list that appears.#CRLF#3.When you are on the page with your city, copy the entire address.#CRLF#4.Insert the copied address in the field below and press the "Enter" key to apply changes.
AntiAlias=1
;[MeterWebsite]
;Meter=Image
;ImageName=#@#Location.png
;X=280r
;Y=60
;AntiAlias=1
[MeterAddress]
Meter=String
StringAlign=Left
FontFace=century gothic
FontColor=255,255,0
FontSize=10
X=30
Y=197
Text=#LocationURL#
AntiAlias=1
ToolTipText=Click and paste address
[MeterInput]
Measure=Plugin
Plugin=InputText
StringAlign=Left
FontFace=century gothic
FontSize=10
FontColor=0,0,0
X=30
Y=197
W=740
H=20
AntiAlias=1
FocusDismiss=1
Command1=[!WriteKeyValue Variables LocationURL "$UserInput$" "#@#Location.inc"][!Refresh][!Refresh "DIGI DayNightClock"]
DefaultValue=#LocationURL#
[MeterCloseButton]
Meter=String
StringAlign=Centercenter
FontFace=century gothic
FontSize=12
FontColor=255,255,255
X=400
Y=293
Text=Close Settings
SolidColor=0,0,0,1
AntiAlias=1
MouseOverAction=[!ShowMeter MeterCloseButtonActive][!HideMeter MeterCloseButton][!Redraw]
[MeterCloseButtonActive]
Meter=String
StringAlign=Centercenter
FontFace=century gothic
FontSize=12
StringStyle=Bold
FontColor=255,255,255
X=r
Y=r
Text=Close Settings
SolidColor=0,0,0,1
AntiAlias=1
Hidden=1
LeftMouseUpAction=[!DeactivateConfig]
MouseLeaveAction=[!ShowMeter MeterCloseButton][!HideMeter MeterCloseButtonActive][!Redraw]
- I don't have the Location.png image file, used into the [MeterWebsite] meter (it isn't included, not even in your original package, posted in your first, original post). So, I moved the LeftMouseDownAction option of the Image meter to the newly added [MeterInstruction1] meter (see below) and I also replaced it with LeftMouseUpAction. Here is why have I made this replacement: https://docs.rainmeter.net/manual/mouse-actions/#LeftMouseUpAction.
- Not having the needed image file, I also commented out the [MeterWebsite] meter.
- I split the [MeterInstruction] meter into two meters: [MeterInstruction1] and [MeterInstruction2]. I did this because I added a LeftMouseUpAction option to [MeterInstruction1]. I also added an InlinePattern and through some MouseOverAction and MouseLeaveAction, an InlineSetting. If you take a look at the appropriate meter, you can see what I'm talking about.
- I moved the LeftMouseUpAction option from [MeterAddress] to the [MeterLocation] meter. It's easier I think to click it this way.
- I removed the parameter from the !DeactivateConfig option of the [MeterCloseButtonActive] (but even leaving it, the bang works, so, that's just a "shorten the code" design).
- I replaced the [!Update] bangs of the LeftMouseUpAction options of [MeterCloseButton] and [MeterCloseButtonActive] meters, with [!Redraw]. Completely enough.