It is currently March 29th, 2024, 7:21 am

Need very simple help with skin please

Get help with creating, editing & fixing problems with skins
Reindeer
Posts: 2
Joined: January 22nd, 2018, 11:28 am

Need very simple help with skin please

Post by Reindeer »

I have downloaded skin that displaying your LAN and WAN ip

Currently i have to hover my mouse over it to display LAN ip, What i want is for it to be set up other way round, I always want to see my LAN ip and only when i hover over i want to see WAN.

also if possible adding info such as computer name would be massive bonus help!

Please see code below and let me know what i need to edit please as i have no idea and totally clueless when it comes to coding :(

Thanks in advance

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
LeftMouseUpAction=[!SetClip "[MeasureIPWeb]"][Play "#@#Sounds\Copy.wav"]
MouseOverAction=[!SetOption MeterWANIPText Text "[MeasureIPLan]"][!UpdateMeter MeterWANIPText][!Redraw]
MouseLeaveAction=[!SetOption MeterWANIPText Text ""][!UpdateMeter MeterWANIPText][!Redraw]

[Metadata]
Name=NetTraffic
Author=JSMorley
Information=Description:|Network Information
Version=Aug 31, 2013
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
;Set these for sure
;http://speedtest.net
MaxDownloadMbits=33.82
MaxUploadMbits=4.85

;Set this if needed
Interface=Best

Font=Trebuchet MS
LabelColor=220,220,220
ValueColor=255,254,222,255
ImagePath=#@#Images\

[MeterAllBackground]
Meter=Image
W=170
H=78
SolidColor=20,20,20,255
SolidColor2=23,46,29,255

;[GATHER Network]=================================

[MeasureNetwork]
Measure=Plugin
Plugin=WebParser.dll
Url=http://www.msftncsi.com/ncsi.txt
RegExp="^(.*)$"
UpdateRate=30
ForceReload=1
StringIndex=1
FinishAction=!EnableMeasure MeasureNetworkLua #CURRENTCONFIG#

[MeasureNetIn]
Measure=NetIn
Interface=#Interface#
MinValue=0
MaxValue=(#MaxDownloadMbits# * 1048576)
AverageSize=5

[MeasureInDelay]
Measure=Calc
Formula=MeasureNetIn

[MeasureNetOut]
Measure=NetOut
Interface=#Interface#
MinValue=0
MaxValue=(#MaxUploadMbits# * 1048576)
AverageSize=5

[MeasureOutDelay]
Measure=Calc
Formula=MeasureNetOut

;[Network WEB IP]=================================

[MeasureIPLan]
Measure=Plugin
Plugin=Plugins\SysInfo.dll
SysInfoType=IP_ADDRESS
SysInfoData=Best

[MeasureIPWeb]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://checkip.dyndns.org
RegExp="(?siU)Address: (.*)</body>"
StringIndex=1
UpdateRate=-1

[MeterIPLabel]
Meter=String
X=10
Y=7
FontFace=#Font#
FontColor=#LabelColor#
FontSize=11
StringStyle=Normal
StringAlign=Left
AntiAlias=1
Text="IP:"

[MeterWANIPText]
Meter=String
MeasureName=MeasureIPWeb
X=160
Y=0r
FontFace=#Font#
FontColor=#ValueColor#
SolidColor=0,0,0,1
FontSize=11
StringStyle=Normal
StringAlign=Right
AntiAlias=1

;[Network TRAFFIC IMAGE]========================

[MeterNetworkImage]
Meter=IMAGE
ImageName=#ImagePath#NetworkError.png
X=10
Y=26r
W=30
H=30
AntiAlias=1

[MeasureNetworkLua]
Measure=Script
ScriptFile=NetTraffic.lua
Disabled=1

;[Network INBOUND TRAFFIC]========================

[MeterNetInPre]
Meter=String
X=50
Y=-6r
FontFace=#Font#
FontColor=#LabelColor#
FontSize=11
StringStyle=Normal
StringAlign=Left
AntiAlias=1
Text="DN:"

[MeterNetInText]
MeasureName=MeasureInDelay
Meter=String
X=160
Y=0r
FontFace=#Font#
FontColor=#ValueColor#
FontSize=11
StringStyle=Normal
StringAlign=Right
AntiAlias=1
AutoScale=1
NumOfDecimals=1
Text="%1B"

[MeterNetInBar]
Meter=Bar
MeasureName=MeasureNetIn
X=50
Y=0R
W=110
H=2
BarColor=104,199,128,255
SolidColor=60,60,60,255
BarOrientation=Horizontal

;[Network OUTBOUND TRAFFIC]=======================

[MeterNetOUTPre]
Meter=String
X=50
Y=5r
FontFace=#Font#
FontColor=#LabelColor#
FontSize=11
StringStyle=Normal
StringAlign=Left
AntiAlias=1
Text="UP:"

[MeterNetOutText]
MeasureName=MeasureOutDelay
Meter=String
X=160
Y=0r
FontFace=#Font#
FontColor=#ValueColor#
FontSize=11
StringStyle=Normal
StringAlign=Right
AntiAlias=1
AutoScale=1
NumOfDecimals=1
Text="%1B"

[MeterNetOutBar]
Meter=Bar
MeasureName=MeasureNetOut
X=50
Y=0R
W=110
H=2
BarColor=104,199,128,255
SolidColor=60,60,60,255
BarOrientation=Horizontal
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Need very simple help with skin please

Post by balala »

Reindeer wrote:Currently i have to hover my mouse over it to display LAN ip, What i want is for it to be set up other way round, I always want to see my LAN ip and only when i hover over i want to see WAN.
Add/modify the MeasureName / MeasureName2 options to the [MeterWANIPText] meter and add the following Text option:

Code: Select all

[MeterWANIPText]
...
MeasureName=MeasureIPLan
MeasureName2=MeasureIPWeb
...
Text=%1
Take care to not remove the existing options, just add these ones.
Then replace the MouseOverAction and MouseLeaveAction options of the [Rainmeter] section, as it follows:

Code: Select all

[Rainmeter]
...
MouseOverAction=[!SetOption MeterWANIPText Text "%2"][!UpdateMeter "MeterWANIPText"][!Redraw]
MouseLeaveAction=[!SetOption MeterWANIPText Text "%1"][!UpdateMeter "MeterWANIPText"][!Redraw]
Reindeer wrote:also if possible adding info such as computer name would be massive bonus help!
Definitely possible. You have to use the SysInfo plugin. Add the following plugin measure to your code:

Code: Select all

[MeasureComputerName]
Measure=Plugin
Plugin=SysInfo
SysInfoType=COMPUTER_NAME
UpdateDivider=-1
You need a String meter, to display the name returned by the above measure. Eg add the following meter, after [MeterNetOutBar]:

Code: Select all

[MeterComputerName]
MeasureName=MeasureComputerName
Meter=String
X=160
Y=10r
FontFace=#Font#
FontColor=#ValueColor#
FontSize=11
StringStyle=Normal
StringAlign=Right
AntiAlias=1
Text=%1
Additional tip: you don't need quotations around the value of the Text options in the String meters. In fact you don't need them nowhere in the specifically set options: https://forum.rainmeter.net/viewtopic.php?p=137628#p137628.
Reindeer
Posts: 2
Joined: January 22nd, 2018, 11:28 am

Re: Need very simple help with skin please

Post by Reindeer »

Thanks a lot all working :D
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Need very simple help with skin please

Post by balala »

Glad to help.