for that, you just use the code bbcode tags around the text you want to treat as code:azazello wrote:the code of the skin
Code: Select all
[code]Some Text that you want to treat as code
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
BackgroundMode=2
SolidColor=255,0,0,0
SkinWidth=170
SkinHeight=104
ContextTitle=Open @Includes Folder
ContextAction=["#@#"]
ContextTitle2=---
ContextAction2=[]
ContextTitle3=Open Windows Network Settings
ContextAction3=["ms-settings:network"]
ContextTitle4=Copy Information to Clipboard
ContextAction4=[!SetClip "[MeasureAdapterDesc]#CRLF#WAN: [MeasureIPWeb]#CRLF#LAN: [MeasureIPLan]#CRLF#Router: [MeasureRouter]"][Play "#@#Sounds\Copy.wav"]
ContextTitle5=Manage Router in your Browser
ContextAction5=["http://[MeasureRouter]"]
ContextTitle6=---
ContextAction6=[]
ContextTitle7=More Actions...
ContextAction7=[!SkinMenu]
RightMouseUpAction=!SkinCustomMenu
OnRefreshAction=["#CURRENTPATH#UpdateAfraid.org.exe"]
[Metadata]
Name=NetworkPanel
Author=JSMorley
Information=Description: Network Information. Slide-out WiFi panel.||Instructions:|See @Resources\Network.inc to set important variables!||Right-click skin for more options.
Version=Aug 7, 2016
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[Variables]
@Include1="#@#GeneralVariables.inc"
@Include2="#@#Network.inc"
; Toggle WIFI Panel on/off
[MeasureShowWIFI]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_TYPE
SysInfoData=#Interface#
UpdateDivider=5
IfMatch=Wireless
DynamicVariables=1
IfMatchAction=[!EnableMeasureGroup "WIFI"][!SetOption MeterAllBackground MeterStyle "BackgroundMouseOver"]
IfNotMatchAction=[!DisableMeasureGroup "WIFI"][!SetOption MeterAllBackground MeterStyle ""]
; Network measures
[MeasureAdapterDesc]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_DESCRIPTION
SysInfoData=Best
UpdateDivider=5
DynamicVariables=1
IfMatch=TAP-Windows Adapter V9
IfMatchAction=[!SetVariable Interface "[MeasureAdapterDesc]"][!SetOption MeterWANLabel Text "VPN"][!SetOption MeterLANLabel Text "TAP"]
IfNotMatchAction=[!SetVariable Interface "[MeasureAdapterDesc]"][!SetOption MeterWANLabel Text "WAN"][!SetOption MeterLANLabel Text "LAN"]
[MeasureNetwork]
Measure=Plugin
Plugin=SysInfo
SysInfoType=LAN_CONNECTIVITY
UpdateDivider=5
DynamicVariables=1
IfCondition=MeasureNetWork = -1
IfTrueAction=[!SetOption MeterWANText Text "None"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption MeterWANText Text ""][!UpdateMeter *][!Redraw]
[MeasureInternet]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
UpdateDivider=5
DynamicVariables=1
IfCondition=MeasureInternet = -1
IfTrueAction=[!SetOption MeterWANText Text "None"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption MeterWANText Text ""][!UpdateMeter *][!Redraw]
[MeasureNetIn]
Measure=NetIn
Interface=#Interface#
MinValue=0
MaxValue=(#MaxDownloadMb# * 1048576)
[MeasureNetOut]
Measure=NetOut
Interface=#Interface#
MinValue=0
MaxValue=(#MaxUploadMb# * 1048576)
[MeasureSetImage]
Measure=Calc
Formula=1
IfCondition=(MeasureNetIn > 0) && (MeasureNetOut = 0) && (MeasureNetwork > -1) && (MeasureInternet > -1)
IfTrueAction=[!SetVariable NetDnColor #NetTransColor#][!SetVariable NetUpColor #NetQuietColor#][!UpdateMeter *][!Redraw]
IfCondition2=(MeasureNetIn = 0) && (MeasureNetOut > 0) && (MeasureNetwork > -1) && (MeasureInternet > -1)
IfTrueAction2=[!SetVariable NetDnColor #NetQuietColor#][!SetVariable NetUpColor #NetTransColor#][!UpdateMeter *][!Redraw]
IfCondition3=(MeasureNetIn > 0) && (MeasureNetOut > 0) && (MeasureNetwork > -1) && (MeasureInternet > -1)
IfTrueAction3=[!SetVariable NetDnColor #NetTransColor#][!SetVariable NetUpColor #NetTransColor#][!UpdateMeter *][!Redraw]
IfCondition4=(MeasureNetIn = 0) && (MeasureNetOut = 0) && (MeasureNetwork > -1) && (MeasureInternet > -1)
IfTrueAction4=[!SetVariable NetDnColor #NetQuietColor#][!SetVariable NetUpColor #NetQuietColor#][!UpdateMeter *][!Redraw]
IfCondition5=MeasureInternet = -1
IfTrueAction5=[!SetVariable NetDnColor #NetWarnColor#][!SetVariable NetUpColor #NetWarnColor#][!UpdateMeter *][!Redraw]
IfCondition6=MeasureNetwork = -1
IfTrueAction6=[!SetVariable NetDnColor #NetErrorColor#][!SetVariable NetUpColor #NetErrorColor#][!UpdateMeter *][!Redraw]
[MeasureIPLan]
Measure=Plugin
Plugin=SysInfo
SysInfoType=IP_ADDRESS
SysInfoData=#Interface#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^$":"None"
[MeasureRouter]
Measure=Plugin
Plugin=SysInfo
SysInfoType=GATEWAY_ADDRESS
SysInfoData=#Interface#
DynamicVariables=1
RegExpSubstitute=1
Substitute="^$":"None"
[MeasureIPWeb]
Measure=WebParser
;URL=http://icanhazip.com/
;RegExp=(?siU)^(.*)$
URL=https://ipinfo.info/html/ip_checker.php
RegExp=title="My IP Address" style="text-decoration:none; color:black;"><b>(.*)</b>
StringIndex=1
UpdateRate=30
RegExpSubstitute=1
Substitute="^$":"None"
; WIFI Measures
[MeasureQuality]
Group=WIFI
Measure=Plugin
Plugin=WifiStatus
WiFiInfoType=Quality
RegExpSubstitute=1
Substitute="^0$":""
[MeasureDivideQuality]
Group=WIFI
Measure=Calc
Formula=MeasureQuality < 20 ? 1 : (MeasureQuality < 40 ? 2 : (MeasureQuality < 60 ? 3 : (MeasureQuality < 80 ? 4 : 5)))
MinValue=0
MaxValue=5
[MeasureNoSignal]
Group=WIFI
Measure=Calc
Formula=-1
UpdateDivider=-1
[MeasureSSID]
Group=WIFI
Measure=Plugin
Plugin=WifiStatus
WiFiInfoType=SSID
IfMatch=^-----$
IfMatchAction=[!SetOption MeterQualityText Text "Disconnected "][!SetOption MeterQualityValue InlineSetting3 "Color | #ValueColor#,1"][!SetOption MeterQuality MeasureName "MeasureNoSignal"][!SetOption MeterRouterValue Text "-----"][!UpdateMeter *][!Redraw]
IfNotMatchAction=[!SetOption MeterQualityText Text "Quality"][!SetOption MeterQualityValue InlineSetting3 "Color | #ValueColor#,255"][!SetOption MeterQuality MeasureName "MeasureDivideQuality"][!SetOption MeterRouterValue Text ""][!UpdateMeter *][!Redraw]
Substitute="-1":"-----"
; Slider
[MeasureSlideBetween]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideNetToWIFI, 10, 10
SlideNetToWIFI=[!SetVariable NetOffSet "(Clamp(#NetOffSet#+17,0,170))"][!SetVariable WIFIOffSet "(Clamp(#WIFIOffSet#-17,0,170))"]#U#
ActionList2=Repeat SlideWIFIToNet, 10, 10
SlideWIFIToNet=[!SetVariable NetOffSet "(Clamp(#NetOffSet#-17,0,170))"][!SetVariable WIFIOffSet "(Clamp(#WIFIOffSet#+17,0,170))"]#U#
DynamicVariables=1
; Network Meters
[BackgroundMouseOver]
MouseOverAction=[!CommandMeasure MeasureSlideBetween "Stop 2"][!CommandMeasure MeasureSlideBetween "Execute 1"]
MouseLeaveAction=[!CommandMeasure MeasureSlideBetween "Stop 1"][!CommandMeasure MeasureSlideBetween "Execute 2"]
[MeterAllBackground]
Meter=Image
W=170
H=104
SolidColor=0,0,0,1
[MeterNetBackground]
Meter=Shape
Shape=Rectangle 0.5,0.5,169,103,12 | Fill Color #BackgroundColor# | StrokeWidth 1.5 | Stroke Color #FrameColor#
X=(#NetOffSet#)
W=170
H=104
UpdateDivider=-1
DynamicVariables=1
[MeterWANLabel]
Meter=String
X=(#NetOffSet# + 15)
Y=9
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#LabelColor#
StringAlign=Left
AntiAlias=1
DynamicVariables=1
Text=WAN
[MeterWANText]
Meter=String
MeasureName=MeasureIPWeb
W=105
H=17
X=(#NetOffSet# + 154)
Y=0r
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#ValueColor#
SolidColor=0,0,0,1
StringAlign=Right
ClipString=1
AntiAlias=1
DynamicVariables=1
[MeterLANLabel]
Meter=String
X=(#NetOffSet# + 13)
Y=2R
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#LabelColor#
StringAlign=Left
InlineSetting=CharacterSpacing | 1.5
AntiAlias=1
DynamicVariables=1
Text=LAN
[MeterLANText]
Meter=String
MeasureName=MeasureIPLan
X=(#NetOffSet# + 154)
Y=0r
W=105
H=17
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#ValueColor#
SolidColor=0,0,0,1
StringAlign=Right
ClipString=1
AntiAlias=1
DynamicVariables=1
[MeterDnLight]
Meter=Shape
X=(#NetOffSet# + 15)
Y=22r
Shape=Ellipse 10,10,6.5 | StrokeWidth 0 | FillColor #NetDnColor#
DynamicVariables=1
[MeterNetInPre]
Meter=String
X=(#NetOffSet# + 46)
Y=1r
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#LabelColor#
StringAlign=Left
AntiAlias=1
DynamicVariables=1
Text=DN
[MeterNetInText]
MeasureName=MeasureNetIn
Meter=String
X=(#NetOffSet# + 156)
Y=0r
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#ValueColor#
StringAlign=Right
AutoScale=1
NumOfDecimals=1
AntiAlias=1
DynamicVariables=1
Text=%1B
[MeterNetInBar]
Meter=Bar
MeasureName=MeasureNetIn
X=(#NetOffSet# + 46)
Y=0R
W=109
H=1
BarColor=104,199,128,255
SolidColor=#BarBackColor#
BarOrientation=Horizontal
DynamicVariables=1
[MeterUpLight]
Meter=Shape
X=(#NetOffSet# + 15)
Y=2R
Shape=Ellipse 10,10,6.5 | StrokeWidth 0 | FillColor #NetDnColor#
DynamicVariables=1
[MeterNetOUTPre]
Meter=String
X=(#NetOffSet# + 46)
Y=2r
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#LabelColor#
StringAlign=Left
AntiAlias=1
DynamicVariables=1
Text=UP
[MeterNetOutText]
MeasureName=MeasureNetOut
Meter=String
X=(#NetOffSet# + 156)
Y=0r
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#ValueColor#
StringAlign=Right
AutoScale=1
NumOfDecimals=1
AntiAlias=1
DynamicVariables=1
Text=%1B
[MeterNetOutBar]
Meter=Bar
MeasureName=MeasureNetOut
X=(#NetOffSet# + 46)
Y=0R
W=109
H=1
BarColor=104,199,128,255
SolidColor=#BarBackColor#
BarOrientation=Horizontal
DynamicVariables=1
; WIFI Meters
[MeterWIFIBackground]
Meter=Shape
Shape=Rectangle 0.5,0.5,169,103,12 | Fill Color #BackgroundColor# | StrokeWidth 1.5 | Stroke Color #FrameColor#
X=(#WIFIOffSet#)
W=170
H=104
UpdateDivider=-1
DynamicVariables=1
[MeterQuality]
Meter=Image
MeasureName=MeasureDivideQuality
W=40
H=40
X=(#WIFIOffSet# + 9)
Y=5
ImagePath=#ImagePath#\WIFI\Win10\Green
DynamicVariables=1
[MeterHeader]
Meter=String
X=(#WIFIOffSet# + 55)
Y=4r
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#ValueColor#
StringAlign=Left
AntiAlias=1
DynamicVariables=1
Text=WIFI Status
[MeterQualityText]
Meter=String
X=(#WIFIOffSet# + 55)
Y=2R
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#LabelColor#
StringAlign=Left
AntiAlias=1
DynamicVariables=1
Text=Quality
[MeterQualityValue]
Meter=String
MeasureName=MeasureQuality
X=(#WIFIOffSet# + 154)
Y=0r
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#ValueColor#
StringAlign=Right
AntiAlias=1
DynamicVariables=1
Text=%1%
[MeterSSIDText]
Meter=String
X=(#WIFIOffSet# + 15)
Y=12R
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#LabelColor#
StringAlign=Left
AntiAlias=1
DynamicVariables=1
Text=SSID
[MeterSSIDValue]
Meter=String
MeasureName=MeasureSSID
X=(#WIFIOffSet# + 154)
Y=0r
W=106
H=17
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#ValueColor#
StringAlign=Right
ClipString=1
AntiAlias=1
DynamicVariables=1
[MeterRouterText]
Meter=String
X=(#WIFIOffSet# + 15)
Y=1R
W=150
H=15
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#LabelColor#
SolidColor=0,0,0,1
StringAlign=Left
AntiAlias=1
DynamicVariables=1
Text=Router
[MeterRouterValue]
Meter=String
MeasureName=MeasureRouter
X=(#WIFIOffSet# + 154)
Y=0r
W=106
H=15
FontFace=#TextFont#
FontSize=11
FontWeight=400
FontColor=#ValueColor#
StringAlign=Right
ClipString=1
AntiAlias=1
DynamicVariables=1