I recently started to use a VPN.
This code is hat I am using with mixed results:
Code: Select all
[MeasureWANIP]
Measure=WebParser
Url=http://checkip.dyndns.org/%22
RegExp="(?siU)<body>(.+)Address: (.+)</body>"
StringIndex=2
OnChangeAction=[!SetOption MeterWANIP Text [MeasureWANIP]][!Redraw]
DynamicVariables=1
[MeterFrame]
Meter=Image
SolidColor=65,75,175,190
X=35
Y=35
W=260
H=260
[MeterWANIP]
Meter=String
MeasureName=MeasureWANIP
X=165
Y=132
StringAlign=Center
FontColor=200,200,200,255
StringEffect=Border
FontEffectColor=0,0,0,255
FontSize=18
FontFace=Calibri
AntiAlias=1
MouseOverAction=[!SetOption MeterWANIP FontColor 210,170,90,220][!UpdateMeterGroup IPN][!Redraw]
LeftMouseDownAction=["C:\Program Files\Private Internet Access\pia-client.exe"]
Text=%1
DynamicVariables=1
Group=IPN
This part does:
Code: Select all
[MeasureAdapter]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=Best
Substitute="Intel(R) Ethernet Connection (7) I218-IV":"STANDARD","Private Internet Access Network Adapter":"Private"
DynamicVariables=1
[MeterIfVPN]
Meter=String
MeasureName=MeasureAdapter
X=r
Y=+36r
Text=%1
StringAlign=Center
StringEffect=Border
FontEffectColor=0,0,0,255
FontColor=200,200,200,255
FontSize=19
FontFace=Calibri
AntiAlias=1
The layout might seem messed up - I cut out some image meters from this text as they are not relevant - just ignore that part.