Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Rainmeter]
- AccurateText=1
- Update=1000
- Group=NetworkMeter
- MouseOverAction=[!SetOption MeterSettingsButton ImageAlpha 255][!UpdateMeter "MeterSettingsButton"][!Redraw]
- MouseLeaveAction=[!SetOption MeterSettingsButton ImageAlpha 0][!UpdateMeter "MeterSettingsButton"][!Redraw]
- MiddleMouseUpAction=[!Refresh]
- ; emulate addgadgets.com Network Meter behavior; double-click brings up "Network and Sharing Center" (both lines are equivalent)
- ;LeftMouseDoubleClickAction=[control.exe /name Microsoft.NetworkandSharingCenter]
- LeftMouseDoubleClickAction=[Shell:::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}]
- SkinHeight=(#BgHeight# * #Scale#)
- SkinWidth=(#BgWidth# * #Scale#)
- [Metadata]
- Name=Network Meter
- Author=SilverAzide
- Information=Shows network activity. Inspired by Network Meter gadget by AddGadgets.com.
- License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
- Version=3.0.1
- ;###################################################################################################
- ; Network Meter
- ;###################################################################################################
- [Variables]
- @Include="#@#NetworkVariables.inc"
- ; background
- BgHeight=182
- BgWidth=160
- ; text X margin
- TextPosX=8
- ; if AccurateText=1, set this to 2 (pixels); otherwise, set this to 0 (for String meters only)
- AccTextOffset=2
- ; graph smoothing factor (average sample size)
- ; 1 = maximum spikiness (same appearance as original addgadgets.com gadgets)
- ; 2 = minimal smoothing (default, may be more realistic indicator of performance)
- ; 3 = smoother (may be less accurate indicator of performance)
- ; >3 = more smoothing (not recommended)
- SmoothFactor=2
- ; dynamic variables; do not change
- AdapterFound=0
- DataIsInbound=0
- DataIsOutbound=0
- MaxBytesPerSec=0
- ; dynamic variables to hold formatted text values; do not change
- TextNetIn=""
- TextNetInBits=""
- TextNetInBytesCurrent=""
- TextNetInBytesTotal=""
- TextNetOut=""
- TextNetOutBits=""
- TextNetOutBytesCurrent=""
- TextNetOutBytesTotal=""
- ; network bitmap frame indices:
- ; 0 = error
- ; 1 = ok/idle
- ; 2 = in/down
- ; 3 = out/up
- ; 4 = both
- NetworkFrame=0
- ;///////////////////////////////////////////////////////////////////////////////////////////////////
- ; Styles
- ;///////////////////////////////////////////////////////////////////////////////////////////////////
- [StyleTextNetInfo]
- FontSize=#FontSize1#
- FontFace=#FontName#
- StringAlign=Left
- AntiAlias=1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [StyleArrowDown]
- ImageName="#@#ArrowDown.png"
- ScaleMargins=0,0,0,0
- AntiAlias=1
- W=12
- H=12
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- UpdateDivider=-1
- [StyleArrowUp]
- ImageName="#@#ArrowUp.png"
- ScaleMargins=0,0,0,0
- AntiAlias=1
- W=12
- H=12
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- UpdateDivider=-1
- [StyleGraph]
- X=9
- Y=(#BgHeight# - 89)
- W=(#BgWidth# - 19)
- H=40
- AntiAlias=1
- AutoScale=1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- ;///////////////////////////////////////////////////////////////////////////////////////////////////
- ; Measures
- ;///////////////////////////////////////////////////////////////////////////////////////////////////
- [CheckAdapterConfigEthernet]
- Measure=String
- String=#InterfaceEthernet#
- RegExpSubstitute=1
- Substitute="^(.+)$":"enabled","^$":"disabled"
- IfMatch="enabled"
- IfMatchAction=[!EnableMeasureGroup "MeasureEthernet"][!SetVariable AdapterFound 1]
- IfNotMatchAction=[!DisableMeasureGroup "MeasureEthernet"]
- UpdateDivider=-1
- [CheckAdapterConfigWireless]
- Measure=String
- String=#InterfaceWireless#
- RegExpSubstitute=1
- Substitute="^(.+)$":"enabled","^$":"disabled"
- IfMatch="enabled"
- IfMatchAction=[!EnableMeasureGroup "MeasureWireless"][!SetVariable AdapterFound 1]
- IfNotMatchAction=[!DisableMeasureGroup "MeasureWireless"]
- UpdateDivider=-1
- [CheckAdapterConfigBroadband]
- Measure=String
- String=#InterfaceBroadband#
- RegExpSubstitute=1
- Substitute="^(.+)$":"enabled","^$":"disabled"
- IfMatch="enabled"
- IfMatchAction=[!EnableMeasureGroup "MeasureBroadband"][!SetVariable AdapterFound 1]
- IfNotMatchAction=[!DisableMeasureGroup "MeasureBroadband"]
- UpdateDivider=-1
- ; Windows versions prior to Windows 10 stored the version number as a string in the form "major.minor"
- ; 5.0 = Windows 2000
- ; 5.1 = Windows XP
- ; 5.2 = Windows XP 64-bit Edition, Windows Server 2003, Windows Server 2003 R2
- ; 6.0 = Windows Vista, Windows Server 2008
- ; 6.1 = Windows 7, Windows Server 2008 R2
- ; 6.2 = Windows 8, Windows Server 2012
- ; 6.3 = Windows 8.1, Windows Server 2012 R2 -- AND WINDOWS 10 !!
- [MeasureOSVersion]
- Measure=Registry
- RegHKey=HKEY_LOCAL_MACHINE
- RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
- RegValue=CurrentVersion
- UpdateDivider=-1
- ; Windows versions Windows 10 and later stores the version number as two integers, major version and
- ; minor version; try getting major version and set to zero if OS is prior to Windows 10
- ;[MeasureOSVersion10andLater]
- ;Measure=Registry
- ;RegHKey=HKEY_LOCAL_MACHINE
- ;RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
- ;RegValue=CurrentMajorVersionNumber
- ;RegExpSubstitute=1
- ;Substitute="^$":"0"
- ;UpdateDivider=-1
- ; check if no adapters are configured; if so, attempt to auto-configure
- ; NOTE: Windows 7 and earlier cannot do auto-configuration; PowerShell query does not work due to no MSFT_NetAdapter namespace
- [CalcAdapterConfigCheck]
- Measure=Calc
- IfCondition=([MeasureOSVersion] > 6.1) && (#AdapterFound# = 0) && (#InterfaceAutoConfig# = 1)
- IfTrueAction=[!Log "No network interfaces configured, auto-configuring..." Notice][!SetOption MeterTitleText Text "Configuring..."][!UpdateMeter "MeterTitleText"][!Redraw][!CommandMeasure MeasureRunGetEthernet "Run"]
- IfCondition2=([MeasureOSVersion] > 6.1) && (#AdapterFound# = 0) && (#InterfaceAutoConfig# = 0)
- IfTrueAction2=[!Log "No network interfaces configured; monitoring active interface only" Notice][!EnableMeasure CalcActiveInterface]
- IfCondition3=([MeasureOSVersion] < 6.2) && (#AdapterFound# = 0)
- IfTrueAction3=[!Log "No network interfaces configured; monitoring active interface only" Notice][!EnableMeasure CalcActiveInterface]
- DynamicVariables=1
- UpdateDivider=-1
- ; if no interfaces configured and autoconfig is not available, monitor the "Best" interface only
- [CalcActiveInterface]
- Measure=Calc
- IfCondition=(MeasureAdapterType <> 71) && (#AdapterFound# = 0)
- IfTrueAction=[!Log "Active interface: [MeasureAdapterName] ([MeasureAdapterType])" Notice][!SetVariable InterfaceEthernet [MeasureAdapterName]][!SetVariable InterfaceWireless ""][!SetVariable InterfaceBroadband ""][!SetOptionGroup "MeasureEthernet" Reload 0][!EnableMeasureGroup "MeasureEthernet"][!DisableMeasureGroup "MeasureWireless"][!DisableMeasureGroup "MeasureBroadband"]
- IfCondition2=(MeasureAdapterType = 71) && (#AdapterFound# = 0)
- IfTrueAction2=[!Log "Active interface: [MeasureAdapterName] ([MeasureAdapterType])" Notice][!SetVariable InterfaceEthernet ""][!SetVariable InterfaceWireless [MeasureAdapterName]][!SetVariable InterfaceBroadband ""][!SetOptionGroup "MeasureWireless" Reload 0][!DisableMeasureGroup "MeasureEthernet"][!EnableMeasureGroup "MeasureWireless"][!DisableMeasureGroup "MeasureBroadband"]
- DynamicVariables=1
- Disabled=1
- ;--------------------------------------------- Scripts ---------------------------------------------
- [FormatScript]
- Measure=Script
- ScriptFile="#@#FixedPrecisionFormat.lua"
- ;------------------------------------------- Network IN -------------------------------------------
- [MeasureNetInEthernet]
- Measure=NetIn
- Interface=#InterfaceEthernet#
- Group=MeasureEthernet
- Disabled=1
- [MeasureNetInEthernetTotal]
- Measure=NetIn
- Interface=#InterfaceEthernet#
- Cumulative=1
- Group=MeasureEthernet
- Disabled=1
- [MeasureNetInWireless]
- Measure=NetIn
- Interface=#InterfaceWireless#
- Group=MeasureWireless
- Disabled=1
- [MeasureNetInWirelessTotal]
- Measure=NetIn
- Interface=#InterfaceWireless#
- Cumulative=1
- Group=MeasureWireless
- Disabled=1
- [MeasureNetInBroadband]
- Measure=NetIn
- Interface=#InterfaceBroadband#
- Group=MeasureBroadband
- Disabled=1
- [MeasureNetInBroadbandTotal]
- Measure=NetIn
- Interface=#InterfaceBroadband#
- Cumulative=1
- Group=MeasureBroadband
- Disabled=1
- [MeasureNetIn]
- Measure=Calc
- Formula=MeasureNetInEthernet + MeasureNetInWireless + MeasureNetInBroadband
- IfAboveValue=0
- IfAboveAction=[!SetVariable DataIsInbound 1]
- IfBelowValue=1
- IfBelowAction=[!SetVariable DataIsInbound 0]
- IfCondition=1
- IfTrueAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetIn], 4, '1k', 'TextNetIn')"]
- OnChangeAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetIn], 4, '1k', 'TextNetIn')"]
- [MeasureNetInGraph]
- Measure=Calc
- Formula=MeasureNetIn
- AverageSize=#SmoothFactor#
- [MeasureNetInBytesTotal]
- Measure=Calc
- Formula=MeasureNetInEthernetTotal + MeasureNetInWirelessTotal + MeasureNetInBroadbandTotal
- IfCondition=1
- IfTrueAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetInBytesTotal], 6, '1k', 'TextNetInBytesTotal')"]
- OnChangeAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetInBytesTotal], 6, '1k', 'TextNetInBytesTotal')"]
- [MeasureNetInBytesBase]
- Measure=Calc
- Formula=MeasureNetInEthernetTotal + MeasureNetInWirelessTotal + MeasureNetInBroadbandTotal
- UpdateDivider=-1
- [MeasureNetInBytesCurrent]
- Measure=Calc
- Formula=MeasureNetInBytesTotal - MeasureNetInBytesBase
- IfCondition=1
- IfTrueAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetInBytesCurrent], 6, '1k', 'TextNetInBytesCurrent')"]
- OnChangeAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetInBytesCurrent], 6, '1k', 'TextNetInBytesCurrent')"]
- [MeasureNetInBits]
- Measure=Calc
- Formula=MeasureNetIn * 8
- IfCondition=1
- IfTrueAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetInBits], 4, '1k', 'TextNetInBits')"]
- OnChangeAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetInBits], 4, '1k', 'TextNetInBits')"]
- ;------------------------------------------ Network OUT -------------------------------------------
- [MeasureNetOutEthernet]
- Measure=NetOut
- Interface=#InterfaceEthernet#
- Group=MeasureEthernet
- Disabled=1
- [MeasureNetOutEthernetTotal]
- Measure=NetOut
- Interface=#InterfaceEthernet#
- Cumulative=1
- Group=MeasureEthernet
- Disabled=1
- [MeasureNetOutWireless]
- Measure=NetOut
- Interface=#InterfaceWireless#
- Group=MeasureWireless
- Disabled=1
- [MeasureNetOutWirelessTotal]
- Measure=NetOut
- Interface=#InterfaceWireless#
- Cumulative=1
- Group=MeasureWireless
- Disabled=1
- [MeasureNetOutBroadband]
- Measure=NetOut
- Interface=#InterfaceBroadband#
- Group=MeasureBroadband
- Disabled=1
- [MeasureNetOutBroadbandTotal]
- Measure=NetOut
- Interface=#InterfaceBroadband#
- Cumulative=1
- Group=MeasureBroadband
- Disabled=1
- [MeasureNetOut]
- Measure=Calc
- Formula=MeasureNetOutEthernet + MeasureNetOutWireless + MeasureNetOutBroadband
- IfAboveValue=0
- IfAboveAction=[!SetVariable DataIsOutbound 1]
- IfBelowValue=1
- IfBelowAction=[!SetVariable DataIsOutbound 0]
- IfCondition=1
- IfTrueAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetOut], 4, '1k', 'TextNetOut')"]
- OnChangeAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetOut], 4, '1k', 'TextNetOut')"]
- [MeasureNetOutGraph]
- Measure=Calc
- Formula=MeasureNetOut
- AverageSize=#SmoothFactor#
- [MeasureNetOutBytesTotal]
- Measure=Calc
- Formula=MeasureNetOutEthernetTotal + MeasureNetOutWirelessTotal + MeasureNetOutBroadbandTotal
- IfCondition=1
- IfTrueAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetOutBytesTotal], 6, '1k', 'TextNetOutBytesTotal')"]
- OnChangeAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetOutBytesTotal], 6, '1k', 'TextNetOutBytesTotal')"]
- [MeasureNetOutBytesBase]
- Measure=Calc
- Formula=MeasureNetOutEthernetTotal + MeasureNetOutWirelessTotal + MeasureNetOutBroadbandTotal
- UpdateDivider=-1
- [MeasureNetOutBytesCurrent]
- Measure=Calc
- Formula=MeasureNetOutBytesTotal - MeasureNetOutBytesBase
- IfCondition=1
- IfTrueAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetOutBytesCurrent], 6, '1k', 'TextNetOutBytesCurrent')"]
- OnChangeAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetOutBytesCurrent], 6, '1k', 'TextNetOutBytesCurrent')"]
- [MeasureNetOutBits]
- Measure=Calc
- Formula=MeasureNetOut * 8
- IfCondition=1
- IfTrueAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetOutBits], 4, '1k', 'TextNetOutBits')"]
- OnChangeAction=[!CommandMeasure FormatScript "FormatNumber([MeasureNetOutBits], 4, '1k', 'TextNetOutBits')"]
- ;-------------------------------------- Max transfer speed ----------------------------------------
- [MeasureMaxBytesPerSec]
- Measure=Calc
- Formula=Max(Max(MeasureNetIn, MeasureNetOut), #MaxBytesPerSec#)
- IfConditionMode=1
- IfCondition=((MeasureMaxBytesPerSec > #MaxBytesPerSec#) && (MeasureMaxBytesPerSec < 134217728))
- IfTrueAction=[!SetVariable MaxBytesPerSec ([MeasureMaxBytesPerSec])]
- DynamicVariables=1
- [MeasureMaxBitsPerSec]
- Measure=Calc
- Formula=(#MaxBytesPerSec# * 8)
- DynamicVariables=1
- ;------------------------------------------ IP Addresses ------------------------------------------
- [MeasureIPLan]
- Measure=Plugin
- Plugin=SysInfo
- SysInfoType=IP_ADDRESS
- SysInfoData=Best
- DynamicVariables=1
- OnChangeAction=[!Log "Internal IP address change, refreshing external IP address" Notice][!CommandMeasure MeasureIPWeb "Reset"][!CommandMeasure MeasureIPWeb "Update"]
- [MeasureIPWeb]
- Measure=Plugin
- Plugin=WebParser
- Url=https://secure.internode.on.net/webtools/showmyip?textonly=1
- RegExp="(.*)"
- StringIndex=1
- ForceReload=1
- UpdateRate=-1
- OnChangeAction=[!SetOption MeterExternalIPValueMouseRegion LeftMouseUpAction "http://whatismyipaddress.com/ip/[MeasureIPWeb]"]
- ;
- ; NOTE: Websites that can be used for obtaining your external IP address:
- ;
- ; Url=https://secure.internode.on.net/webtools/showmyip?textonly=1 RegExp="(.*)"
- ; Url=http://checkip.dyndns.org RegExp="(?siU)Address: (.*)</body>"
- ; Url=http://ipdetect.dnspark.com RegExp="(?siU)Address: (.*)</body>"
- ;
- ; NOTE: Websites that can be used for displaying your location based on your external IP address:
- ;
- ; http://addgadgets.com/ipaddress/index.php?ipaddr=[MeasureIPWeb]
- ; http://whatismyipaddress.com/ip/[MeasureIPWeb]
- ;
- ;----------------------------------------- Active Adapter ------------------------------------------
- [MeasureAdapterName]
- Measure=Plugin
- Plugin=SysInfo
- SysInfoType=ADAPTER_DESCRIPTION
- SysInfoData=Best
- DynamicVariables=1
- OnChangeAction=[!Log "Network adapter changed to [MeasureAdapterName], refreshing ActiveNet info" Notice][!SetOption MeasureAdapterType Reload 0][!SetOption MeasureInterfaceName Reload 0][!SetVariable MaxBytesPerSec 0][!UpdateMeasure "CalcActiveInterface"]
- ;
- ; IMPORTANT:
- ; The measure above is required to get the active adapter name, which is used as input to the
- ; ActiveNet plugin measures. The OnChangeAction is required to refresh all the measures when the
- ; adapter changes.
- ;
- [MeasureAdapterType]
- Measure=Plugin
- Plugin=ActiveNet
- Type=NetAdapterType
- Name=[MeasureAdapterName]
- UpdateInterval=-1
- ;
- ; For a list of adapter types, see:
- ; https://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterfacetype(v=vs.110).aspx
- ; https://github.com/Microsoft/referencesource/blob/master/System/net/System/Net/NetworkInformation/interfacetype.cs
- ;
- ; The Rainmeter debug log will list type and numeric value (this is an example only):
- ;
- ; DBUG (00:00:00.062) : 1: Intel(R) 82579LM Gigabit Network Connection
- ; DBUG (00:00:00.062) : Alias: Local Area Connection
- ; DBUG (00:00:00.062) : Type=Ethernet(6), Hardware=Yes, Filter=No
- ; DBUG (00:00:00.078) : 2: Intel(R) Centrino(R) Ultimate-N 6300 AGN
- ; DBUG (00:00:00.078) : Alias: Wireless Network Connection
- ; DBUG (00:00:00.078) : Type=IEEE802.11(71), Hardware=Yes, Filter=No
- ; DBUG (00:00:00.093) : 3: PANTECH UML290 Mobile Broadband
- ; DBUG (00:00:00.093) : Alias: Mobile Broadband Connection
- ; DBUG (00:00:00.093) : Type=Other(243), Hardware=Yes, Filter=No
- ;
- ; Common adapter type values:
- ;
- ; NetAdapterType NetAdapterType
- ; (string) (number) Remarks
- ; -------------- -------------- -----------------------------------------
- ; Ethernet 6
- ; Wireless80211 71 Wireless 802.11 (all types)
- ; Wwanpp 243 Mobile broadband (GSM)
- ; Wwanpp2 244 Mobile broadband (CDMA)
- ;
- [MeasureInterfaceName]
- Measure=Plugin
- Plugin=ActiveNet
- Type=NetInterfaceName
- Name=[MeasureAdapterName]
- UpdateInterval=-1
- ;---------------------------------------- Wireless Adapter -----------------------------------------
- ;[MeasureWiFiSSID]
- ;Measure=Plugin
- ;Plugin=WiFiStatus
- ;WiFiInfoType=SSID
- ;WiFiIntfID=#WiFiInterfaceID#
- ;RegExpSubstitute=1
- ;Substitute="(^-1$)":"Not Connected","(^0$)":"No Connection"
- ;Group=MeasureWireless
- ;Disabled=1
- ;[MeasureWiFiQuality]
- ;Measure=Plugin
- ;Plugin=WiFiStatus
- ;WiFiInfoType=Quality
- ;WiFiIntfID=#WiFiInterfaceID#
- ;Group=MeasureWireless
- ;Disabled=1
- ;[MeasureWiFiAuthentication]
- ;Measure=Plugin
- ;Plugin=WiFiStatus
- ;WiFiInfoType=AUTH
- ;WiFiIntfID=#WiFiInterfaceID#
- ;RegExpSubstitute=1
- ;Substitute="(^-1$)":"","(^0$)":""
- ;Group=MeasureWireless
- ;Disabled=1
- ;[MeasureWiFiEncryption]
- ;Measure=Plugin
- ;Plugin=WiFiStatus
- ;WiFiInfoType=Encryption
- ;WiFiIntfID=#WiFiInterfaceID#
- ;Group=MeasureWireless
- ;Disabled=1
- ;[MeasureWiFiBands]
- ;Measure=Plugin
- ;Plugin=WiFiStatus
- ;WiFiInfoType=PHY
- ;WiFiIntfID=#WiFiInterfaceID#
- ;Group=MeasureWireless
- ;Disabled=1
- ;[MeasureWiFiList]
- ;Measure=Plugin
- ;Plugin=WiFiStatus
- ;WiFiInfoType=List
- ;WiFiListStyle=3
- ;Group=MeasureWireless
- ;Disabled=1
- ;------------------------------------------ Connectivity ------------------------------------------
- [MeasureNetworkIsLAN]
- Measure=Plugin
- Plugin=SysInfo
- SysInfoType=LAN_CONNECTIVITY
- [MeasureNetworkIsWAN]
- Measure=Plugin
- Plugin=SysInfo
- SysInfoType=INTERNET_CONNECTIVITY
- IfCondition=(MeasureNetworkIsWAN = 1)
- IfTrueAction=[!HideMeter "MeterNoInternetImage"][!ShowMeter "MeterInternetImage"]
- IfFalseAction=[!HideMeter "MeterInternetImage"][!ShowMeter "MeterNoInternetImage"]
- [MeasureNetworkIcon]
- Measure=Calc
- ; returns -2 (no network), 0 (LAN but no WAN), +2 (LAN and WAN)
- Formula=MeasureNetworkIsLAN + MeasureNetworkIsWAN
- IfConditionMode=1
- IfCondition=(MeasureNetworkIcon = -2)
- IfTrueAction=[!SetVariable NetworkFrame 0]
- IfCondition2=(MeasureNetworkIcon > -2) && (#DataIsInbound# = 1) && (#DataIsOutbound# = 0)
- IfTrueAction2=[!SetVariable NetworkFrame 2]
- IfCondition3=(MeasureNetworkIcon > -2) && (#DataIsInbound# = 0) && (#DataIsOutbound# = 1)
- IfTrueAction3=[!SetVariable NetworkFrame 3]
- IfCondition4=(MeasureNetworkIcon > -2) && (#DataIsInbound# = 1) && (#DataIsOutbound# = 1)
- IfTrueAction4=[!SetVariable NetworkFrame 4]
- IfCondition5=(MeasureNetworkIcon > -2) && (#DataIsInbound# = 0) && (#DataIsOutbound# = 0)
- IfTrueAction5=[!SetVariable NetworkFrame 1]
- DynamicVariables=1
- ;[MeasureIconToolTip]
- ;Measure=Calc
- ;Formula=MeasureAdapterType
- ;IfConditionMode=1
- ;IfCondition=(MeasureAdapterType = 71)
- ;IfTrueAction=[!SetOption MeterNetworkImageMouseRegion ToolTipTitle "Wireless Networks"][!SetOption MeterNetworkImageMouseRegion ToolTipText [MeasureWiFiList]]
- ;IfFalseAction=[!SetOption MeterNetworkImageMouseRegion ToolTipTitle [MeasureInterfaceName]][!SetOption MeterNetworkImageMouseRegion ToolTipText [MeasureAdapterName]]
- ;-------------------------------------------- Commands --------------------------------------------
- ; get name of ethernet adapter, then...
- [MeasureRunGetEthernet]
- Measure=Plugin
- Plugin=RunCommand
- Parameter="powershell -NonInteractive -Command "Get-WmiObject -Class MSFT_NetAdapter -Filter 'InterfaceType = 6 and Virtual = False' -Namespace root\StandardCimv2 | Sort -Property InterfaceDescription | Select -First 1 | Format-Table -Property InterfaceDescription -AutoSize -HideTableHeaders""
- OutputType=ANSI
- State=Hide
- Timeout=10000
- Substitute="#CRLF#":""
- IfMatch=^.+$
- IfMatchAction=[!Log "Found ethernet adapter: [MeasureRunGetEthernet]" Notice]
- FinishAction=[!SetVariable InterfaceEthernet [MeasureRunGetEthernet]][!WriteKeyValue Variables InterfaceEthernet "[MeasureRunGetEthernet]" "#@#NetworkVariables.inc"][!CommandMeasure MeasureRunGetWireless "Run"]
- ; ...get name of wireless adapter, then restart
- [MeasureRunGetWireless]
- Measure=Plugin
- Plugin=RunCommand
- Parameter="powershell -NonInteractive -Command "Get-WmiObject -Class MSFT_NetAdapter -Filter 'InterfaceType = 71 and Virtual = False' -Namespace root\StandardCimv2 | Sort -Property InterfaceDescription | Select -First 1 | Format-Table -Property InterfaceDescription -AutoSize -HideTableHeaders""
- OutputType=ANSI
- State=Hide
- Timeout=10000
- Substitute="#CRLF#":""
- IfMatch=^.+$
- IfMatchAction=[!Log "Found wireless adapter: [MeasureRunGetWireless]" Notice]
- FinishAction=[!SetVariable InterfaceWireless [MeasureRunGetWireless]][!WriteKeyValue Variables InterfaceWireless "[MeasureRunGetWireless]" "#@#NetworkVariables.inc"][!WriteKeyValue Variables InterfaceAutoConfig 0 "#@#NetworkVariables.inc"][!Log "Network interface auto-config completed, restarting!" Notice][!Refresh]
- ;///////////////////////////////////////////////////////////////////////////////////////////////////
- ; Meters
- ;///////////////////////////////////////////////////////////////////////////////////////////////////
- ;--------------------------------------- Background and Logo ---------------------------------------
- [MeterBackgroundBase]
- Meter=Image
- SolidColor=0,0,0,1
- Antialias=1
- X=0
- Y=0
- W=(#BgWidth# * #Scale#)
- H=(#BgHeight# * #Scale#)
- UpdateDivider=-1
- [MeterBackgroundFrame1]
- Meter=Image
- SolidColor=0,0,0,((#BgStyle# = 0) ? #BgAlpha# / 2 : ((#BgStyle# = 1) ? #BgAlpha# / 3 : 0))
- Antialias=1
- X=(4 - 1)
- Y=(4 - 1)
- W=(#BgWidth# - 8)
- H=(#BgHeight# - 8)
- UpdateDivider=-1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterBackgroundFrame2]
- Meter=Image
- SolidColor=0,0,0,((#BgStyle# = 0) ? #BgAlpha# : ((#BgStyle# = 1) ? #BgAlpha# / 3 : 0))
- Antialias=1
- X=(5 - 1)
- Y=(5 - 1)
- W=(#BgWidth# - 10)
- H=(#BgHeight# - 10)
- UpdateDivider=-1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterBackgroundFrame3]
- Meter=Image
- SolidColor=((#BgStyle# = 0) ? 164 : 0),((#BgStyle# = 0) ? 160 : 0),((#BgStyle# = 0) ? 160 : 0),((#BgStyle# = 0) ? #BgAlpha# : ((#BgStyle# = 1) ? #BgAlpha# / 3 : #BgAlpha#))
- Antialias=1
- X=(6 - 1)
- Y=(6 - 1)
- W=(#BgWidth# - 12)
- H=(#BgHeight# - 12)
- UpdateDivider=-1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterBackgroundFill]
- Meter=Image
- SolidColor=((#BgStyle# = 0) ? 70 : 0),((#BgStyle# = 0) ? 70 : 0),((#BgStyle# = 0) ? 70 : 0),#BgAlpha#
- SolidColor2=0,0,0,#BgAlpha#
- GradientAngle=90
- Antialias=1
- X=(7 - 1)
- Y=(7 - 1)
- W=(#BgWidth# - 14)
- H=(#BgHeight# - 14)
- UpdateDivider=-1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterNetworkImage]
- Meter=Image
- ImageName="#@#Network.png"
- ImageCrop=(72 * #NetworkFrame#),0,72,72,1
- ImageAlpha=255
- AntiAlias=1
- X=#TextPosX#
- Y=7
- W=30
- H=30
- DynamicVariables=1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterInternetImage]
- Meter=Image
- ImageName="#@#NetworkInternet.png"
- Antialias=1
- X=(#BgWidth# - 24)
- Y=8
- W=13
- H=13
- Hidden=1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterNoInternetImage]
- Meter=Image
- ImageName="#@#NetworkNoInternet.png"
- Antialias=1
- X=(#BgWidth# - 23)
- Y=8
- W=13
- H=13
- Hidden=0
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- ;---------------------------------------------- Text -----------------------------------------------
- [MeterTitleText]
- Meter=String
- FontColor=#ColorFontTitle#
- FontSize=#FontSize2#
- FontFace=#FontName#
- StringAlign=Center
- StringStyle=Bold
- AntiAlias=1
- Text="Network Meter"
- X=(Max(#BgWidth# / 2, 87))
- Y=5
- UpdateDivider=-1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterNetMaxSpeed]
- Meter=String
- MeasureName=MeasureMaxBitsPerSec
- FontColor=#ColorFontSubtitle#
- FontSize=#FontSize1#
- FontFace=#FontName#
- StringAlign=Left
- AntiAlias=1
- AutoScale=1k
- Text="Peak: %1bit/s"
- X=(41 + #AccTextOffset#)
- Y=15r
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterSettingsButton]
- Meter=Image
- ImageName="#@#Settings.png"
- ImageAlpha=0
- Antialias=1
- X=(#BgWidth# - 23)
- Y=2r
- W=12
- H=12
- UpdateDivider=-1
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- ;-------------------------------- IP addresses --------------------------------
- [MeterInternalIPText]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#ColorInfoText1#
- Text="Int IP:"
- X=(#TextPosX# + #AccTextOffset#)
- Y=38
- UpdateDivider=-1
- [MeterInternalIPValue]
- Meter=String
- MeasureName=MeasureIPLan
- MeterStyle=StyleTextNetInfo
- FontColor=#ColorInfoText1#
- Text="%1"
- X=(#TextPosX# + 32 + #AccTextOffset#)
- Y=0r
- [MeterExternalIPText]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#ColorInfoText1#
- Text="Ext IP:"
- X=(#TextPosX# + #AccTextOffset#)
- Y=12r
- UpdateDivider=-1
- [MeterExternalIPValue]
- Meter=String
- MeasureName=MeasureIPWeb
- MeterStyle=StyleTextNetInfo
- FontColor=#ColorInfoText1#
- ClipString=1
- Text="%1"
- W=(#BgWidth# - 14 - 50)
- H=14
- X=(#TextPosX# + 32 + #AccTextOffset#)
- Y=0r
- [MeterRefreshExtIPButton]
- Meter=Image
- ImageName="#@#RefreshUp.png"
- Antialias=1
- X=(#BgWidth# - 24)
- Y=1r
- W=14
- H=14
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- ;------------------------------- mouse regions --------------------------------
- [MeterNetworkImageMouseRegion]
- Meter=Image
- Solidcolor=0,0,0,0
- X=([MeterNetworkImage:X] * #Scale#)
- Y=([MeterNetworkImage:Y] * #Scale#)
- W=([MeterNetworkImage:W] * #Scale#)
- H=([MeterNetworkImage:H] * #Scale#)
- ToolTipTitle=[MeasureInterfaceName]
- ToolTipIcon=Info
- ToolTipText=[MeasureAdapterName]
- DynamicVariables=1
- [MeterSettingsButtonMouseRegion]
- Meter=Image
- Solidcolor=0,0,0,0
- X=([MeterSettingsButton:X] * #Scale#)
- Y=([MeterSettingsButton:Y] * #Scale#)
- W=([MeterSettingsButton:W] * #Scale#)
- H=([MeterSettingsButton:H] * #Scale#)
- LeftMouseUpAction=[!ToggleConfig "#CURRENTCONFIG#\Config" "Settings.ini"]
- UpdateDivider=-1
- [MeterExternalIPValueMouseRegion]
- Meter=Image
- Solidcolor=0,0,0,0
- X=([MeterExternalIPValue:X] * #Scale#)
- Y=([MeterExternalIPValue:Y] * #Scale#)
- W=([MeterExternalIPValue:W] * #Scale#)
- H=([MeterExternalIPValue:H] * #Scale#)
- LeftMouseUpAction=["http://addgadgets.com/ipaddress/"]
- MouseOverAction=[!SetOption MeterExternalIPValue FontColor #PaletteColor4#][!UpdateMeter "MeterExternalIPValue"][!Redraw]
- MouseLeaveAction=[!SetOption MeterExternalIPValue FontColor #ColorInfoText1#][!UpdateMeter "MeterExternalIPValue"][!Redraw]
- UpdateDivider=-1
- [MeterRefreshExtIPButtonMouseRegion]
- Meter=Image
- Solidcolor=0,0,0,0
- X=([MeterRefreshExtIPButton:X] * #Scale#)
- Y=([MeterRefreshExtIPButton:Y] * #Scale#)
- W=([MeterRefreshExtIPButton:W] * #Scale#)
- H=([MeterRefreshExtIPButton:H] * #Scale#)
- LeftMouseUpAction=[!SetOption MeterRefreshExtIPButton ImageName "#@#RefreshUp.png"][!UpdateMeter MeterRefreshExtIPButton][!Redraw][!Log "Refreshing external IP" Notice][!CommandMeasure MeasureIPWeb "Reset"][!CommandMeasure MeasureIPWeb "Update"]
- MouseOverAction=[!SetOption MeterRefreshExtIPButton ImageName "#@#RefreshOver.png"][!UpdateMeter MeterRefreshExtIPButton][!Redraw]
- LeftMouseDownAction=[!SetOption MeterRefreshExtIPButton ImageName "#@#RefreshDown.png"][!UpdateMeter MeterRefreshExtIPButton][!Redraw]
- MouseLeaveAction=[!SetOption MeterRefreshExtIPButton ImageName "#@#RefreshUp.png"][!UpdateMeter MeterRefreshExtIPButton][!Redraw]
- UpdateDivider=-1
- ;----------------------------- upload / download ------------------------------
- [MeterUploadArrow2]
- Meter=Image
- MeterStyle=StyleArrowUp
- ImageTint=#PaletteColor1#
- X=#TextPosX#
- Y=64
- [MeterUploadText2]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#PaletteColor1#
- Text="#TextNetOut#B/s"
- X=(#BgWidth# - 138)
- Y=63
- DynamicVariables=1
- [MeterDownloadArrow2]
- Meter=Image
- MeterStyle=StyleArrowDown
- ImageTint=#PaletteColor2#
- X=#TextPosX#
- Y=78
- [MeterDownloadText2]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#PaletteColor2#
- Text="#TextNetIn#B/s"
- X=(#BgWidth# - 138)
- Y=76
- DynamicVariables=1
- ;--------------------------------------
- [MeterCurrentBytesText]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#ColorInfoText1#
- Text="Current"
- X=(20 + #AccTextOffset#)
- Y=(#BgHeight# - 48)
- UpdateDivider=-1
- [MeterRefreshCurrentButton]
- Meter=Image
- ImageName="#@#RefreshUp.png"
- Antialias=1
- X=60
- Y=1r
- W=14
- H=14
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterRefreshCurrentButtonMouseRegion]
- Meter=Image
- Solidcolor=0,0,0,0
- X=([MeterRefreshCurrentButton:X] * #Scale#)
- Y=([MeterRefreshCurrentButton:Y] * #Scale#)
- W=([MeterRefreshCurrentButton:W] * #Scale#)
- H=([MeterRefreshCurrentButton:H] * #Scale#)
- LeftMouseUpAction=[!SetOption MeterRefreshCurrentButton ImageName "#@#RefreshUp.png"][!UpdateMeter MeterRefreshCurrentButton][!Redraw][!Log "Resetting session network statistics" Notice][!UpdateMeasure "MeasureNetInBytesBase"][!UpdateMeasure "MeasureNetOutBytesBase"]
- MouseOverAction=[!SetOption MeterRefreshCurrentButton ImageName "#@#RefreshOver.png"][!UpdateMeter MeterRefreshCurrentButton][!Redraw]
- LeftMouseDownAction=[!SetOption MeterRefreshCurrentButton ImageName "#@#RefreshDown.png"][!UpdateMeter MeterRefreshCurrentButton][!Redraw]
- MouseLeaveAction=[!SetOption MeterRefreshCurrentButton ImageName "#@#RefreshUp.png"][!UpdateMeter MeterRefreshCurrentButton][!Redraw]
- [MeterTotalBytesText]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#ColorInfoText1#
- Text="Total"
- X=(#BgWidth# - 69 + #AccTextOffset#)
- Y=(#BgHeight# - 48)
- UpdateDivider=-1
- [MeterRefreshTotalButton]
- Meter=Image
- ImageName="#@#RefreshUp.png"
- Antialias=1
- X=(#BgWidth# - 42)
- Y=1r
- W=14
- H=14
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- [MeterRefreshTotalButtonMouseRegion]
- Meter=Image
- Solidcolor=0,0,0,0
- X=([MeterRefreshTotalButton:X] * #Scale#)
- Y=([MeterRefreshTotalButton:Y] * #Scale#)
- W=([MeterRefreshTotalButton:W] * #Scale#)
- H=([MeterRefreshTotalButton:H] * #Scale#)
- LeftMouseUpAction=[!SetOption MeterRefreshTotalButton ImageName "#@#RefreshUp.png"][!UpdateMeter MeterRefreshTotalButton][!Redraw][!Log "Resetting all network statistics" Notice][!ResetStats][!RefreshGroup NetworkMeter]
- MouseOverAction=[!SetOption MeterRefreshTotalButton ImageName "#@#RefreshOver.png"][!UpdateMeter MeterRefreshTotalButton][!Redraw]
- LeftMouseDownAction=[!SetOption MeterRefreshTotalButton ImageName "#@#RefreshDown.png"][!UpdateMeter MeterRefreshTotalButton][!Redraw]
- MouseLeaveAction=[!SetOption MeterRefreshTotalButton ImageName "#@#RefreshUp.png"][!UpdateMeter MeterRefreshTotalButton][!Redraw]
- [MeterUploadArrow3]
- Meter=Image
- MeterStyle=StyleArrowUp
- ImageTint=#PaletteColor1#
- X=#TextPosX#
- Y=(#BgHeight# - 34)
- [MeterUploadArrow4]
- Meter=Image
- MeterStyle=StyleArrowUp
- ImageTint=#PaletteColor1#
- X=(#BgWidth# - 81)
- Y=0r
- [MeterCurrentBytesUp]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#PaletteColor1#
- Text="#TextNetOutBytesCurrent#B"
- X=(20 + #AccTextOffset#)
- Y=-2r
- DynamicVariables=1
- [MeterTotalBytesUp]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#PaletteColor1#
- Text="#TextNetOutBytesTotal#B"
- X=(#BgWidth# - 69 + #AccTextOffset#)
- Y=0r
- DynamicVariables=1
- [MeterDownloadArrow3]
- Meter=Image
- MeterStyle=StyleArrowDown
- ImageTint=#PaletteColor2#
- X=#TextPosX#
- Y=14r
- [MeterDownloadArrow4]
- Meter=Image
- MeterStyle=StyleArrowDown
- ImageTint=#PaletteColor2#
- X=(#BgWidth# - 81)
- Y=0r
- [MeterCurrentBytesDown]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#PaletteColor2#
- Text="#TextNetInBytesCurrent#B"
- X=(20 + #AccTextOffset#)
- Y=-2r
- DynamicVariables=1
- [MeterTotalBytesDown]
- Meter=String
- MeterStyle=StyleTextNetInfo
- FontColor=#PaletteColor2#
- Text="#TextNetInBytesTotal#B"
- X=(#BgWidth# - 69 + #AccTextOffset#)
- Y=0r
- DynamicVariables=1
- ;---------------------------------------------- Graph ----------------------------------------------
- [GraphBackground]
- Meter=Image
- ImageName="#@#Grid.png"
- DynamicVariables=1
- Antialias=1
- X=#TextPosX#
- Y=(#BgHeight# - 90)
- W=(#BgWidth# - 18)
- H=42
- ImageAlpha=70
- TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#
- ; NOTE: draw graph lines from last to first for better appearance
- [MeterGraph]
- Meter=Line
- MeterStyle=StyleGraph
- MeasureName=MeasureNetInGraph
- MeasureName2=MeasureNetOutGraph
- LineCount=2
- LineColor=#PaletteColor2#
- LineColor2=#PaletteColor1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement