It is currently March 29th, 2024, 1:57 am

Help me in this code

Get help with creating, editing & fixing problems with skins
Leeroi
Posts: 11
Joined: August 8th, 2018, 12:43 pm

Help me in this code

Post by Leeroi »

How can i Insert or to use this code??
well im just new here and i have a problem of my rainmeter lagging :( :(

Code: Select all

[Rainmeter]
Update=100
DynamicWindowSize=1
AccurateText=1

[MeasureOnLoad]
Measure=Calc
Formula=Counter
IfEqualValue=1
IfEqualAction=[!EnableMeasure MeasureCheckNetwork]
UpdateDivider=-1

[MeasureCheckNetwork]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
Disabled=1
IfCondition=MeasureCheckNetwork = 1
IfTrueAction=[!Refresh *]

[MeterDummy]
Meter=String
Last edited by jsmorley on August 8th, 2018, 1:21 pm, edited 1 time in total.
Reason: If you set a checkmark icon on the subject, the topic is viewed as "solved".
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help me in this code

Post by jsmorley »

Leeroi wrote:How can i Insert or to use this code??
well im just new here and i have a problem of my rainmeter lagging :( :(

Code: Select all

[Rainmeter]
Update=100
DynamicWindowSize=1
AccurateText=1

[MeasureOnLoad]
Measure=Calc
Formula=Counter
IfEqualValue=1
IfEqualAction=[!EnableMeasure MeasureCheckNetwork]
UpdateDivider=-1

[MeasureCheckNetwork]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
Disabled=1
IfCondition=MeasureCheckNetwork = 1
IfTrueAction=[!Refresh *]

[MeterDummy]
Meter=String
I don't see any problem with that skin, other than not seeing a need to have the Update set to 100, but that in and of itself isn't going to be an issue in this example.

The skin when first loaded will detect that the value of "Counter" is 1, and will enable the measure to check the network status. If the status is "1", it will refresh the skin. When the skin is refreshed, the value of Counter will be 2 or more (Counter is NOT reset when a skin is refreshed, only when first loaded), and nothing further will happen. The measure checking the network will again be, and will stay, disabled.

If you are having an issue, I don't think it can be demonstrated by this simple example, which to be honest doesn't really do anything of value. The problem has to be in some more extensive skin where you are "using" this approach to accomplish something.