A few of troubles and questions!!

Help with creating, editing & fixing problems with skins

A few of troubles and questions!!

February 8th, 2017, 3:48 pm
Zaragan
   [45 posts]

I was saving a lot of questions to make them all on a single post :p Here we go...

[SOLVED BY MYSELF!]1. Split data from topprocesses.dll: I want to split the name of the process and the value of it.
Current:

Code: Select all

[MeasureTopMem]
Measure=Plugin
Plugin=Plugins\TopProcesses.dll
ReQuery=1
IgnoredProcesses=Idle|_Total|rundll32|wscript|userinit
MetricType=Memory
ProcNums=1
Format="%pName: %Memory"

I guess i need to create another Measure using another format? Example:

Code: Select all

[MeasureTopMemName]
Measure=Plugin
Plugin=Plugins\TopProcesses.dll
ReQuery=1
IgnoredProcesses=Idle|_Total|rundll32|wscript|userinit
MetricType=Memory
ProcNums=1
Format="%pName"

;AND

[MeasureTopMemValue]
Measure=Plugin
Plugin=Plugins\TopProcesses.dll
ReQuery=0
IgnoredProcesses=Idle|_Total|rundll32|wscript|userinit
MetricType=Memory
ProcNums=1
Format="%Memory"

Tell me what do you think about this.

[SOLVED BY MYSELF!]2. Same as above but with CPU instead of ram?

Code: Select all

[MeasureTopCPUName]
Measure=Plugin
Plugin=Plugins\TopProcesses.dll
ReQuery=1
IgnoredProcesses=Idle|_Total|rundll32|wscript|userinit
MetricType=CPU
ProcNums=2
Format="%pName"

;AND

[MeasureTopCPUValue]
Measure=Plugin
Plugin=Plugins\TopProcesses.dll
ReQuery=0
IgnoredProcesses=Idle|_Total|rundll32|wscript|userinit
MetricType=CPU
ProcNums=2
Format="%CPU%"


3. Convert time from rss feed (webparser.dll):
If i use "<pubDate>(.*)</pubDate>" i get "Wed, 08 Feb 2017 06:33:40 -0600" but on the web where im parseing ([removed profanity]? does this word really exist? XD) the data (http://animeflv.net/feeds/) it shows fine and on my language (Spanish: "miércoles, 8 de febrero de 2017 13:33") i need to convert the time but didnt understand the docs i read about it, a little help please?

4. This [removed profanity] is hidding from me since i start playing with the code on rainmeter and still didnt find it: On this steam status skin when some service goes down it changes to "offline" and SHOULD change the color to red but WHEN I REFRESH the skin only goes to gray and not to red,and when the skin refreshes by itself it goes green AGAIN. :headbang: :sos:
FULL CODE:

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Background=#@#Background.png
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
; Contains basic information of the skin.
Name=Steam Status
Author=Zaragan
Information=Displays Steam Status.
License=Creative Commons BY-NC-SA 3.0
Version=1.2.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Courier New
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
; --------------------------------------------------
;used if can't connect or connecting to steamgaug.es api
CantConnectColor=128,128,128,128
TextOnlineColor=0,255,0,255
TextOfflineColor=255, 0, 0,255
TextCantConnectColor=128,128,255,255

;RegEx simplifiers (so we don't have a big, impossible-to-debug mess)
ParsingText="Parsin'..."
ISteamClient="ISteamClient": {.*"online": (.*)\n.*},
SteamCommunity=.*"SteamCommunity": {.*"online": (.*),
SteamCommunityTime=.*"time": (.*),
SteamStore=.*"SteamStore": {.*"online": (.*),
SteamStoreTime=.*"time": (.*),
SteamUser=.*"ISteamUser".*"online": (.*),
SteamUserTime=.*"time": (.*),

;IEconItems
TFItems=.*"IEconItems".*"440".*"online": (.*),
DotaItems=.*"570".*"online": (.*),
CSItems=.*"730".*"online": (.*),

;ISteamGameCoordinator
TFGC=.*"ISteamGameCoordinator".*"440".*"online": (.*),
DotaGC=.*"570".*"online": (.*),
CSGC=.*"730".*"online": (.*),

; ===========================
; MEASURES return some kind of value
; ===========================

[MeasureIP]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://steamgaug.es/api/v2
RegExp=(?siU)#ISteamClient##SteamCommunity##SteamCommunityTime##SteamStore##SteamStoreTime##SteamUser##SteamUserTime##TFItems##DotaItems##CSItems##TFGC##DotaGC##CSGC#
StringIndex=1
Substitute="":"99"
;according to wiki: Update*UpdateDivisor*UpdateRate= total update time to parse. If I'm right, this should be 2.5 minutes.
UpdateRate=30

IfConditionMode=1
IfCondition=MeasureIP =1
IfTrueAction=[!SetOption MeterStatus Text "Online"][!SetOption MeterStatus FontColor #TextOnlineColor#]
IfCondition2=MeasureIP =2
IfTrueAction2=[!SetOption MeterStatus Text "Offline"][!SetOption MeterStatus FontColor #TextOfflineColor#]
IfCondition3=MeasureIP =99
IfTrueAction3=[!SetOption MeterStatus Text "Connecting..."][!SetOption MeterStatus FontColor #TextCantConnectColor#]

[MeasureSteamCommunity]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=2
Substitute="":"99"

IfConditionMode=1
IfCondition=MeasureSteamCommunity =1
IfTrueAction=[!SetOption MeterSteamCommunity Text "Online"][!SetOption MeterSteamCommunity FontColor #TextOnlineColor#]
IfCondition2=MeasureSteamCommunity =2
IfTrueAction2=[!SetOption MeterSteamCommunity Text "Offline"][!SetOption MeterSteamCommunity FontColor #TextOfflineColor#]
IfCondition3=MeasureSteamCommunity =99
IfTrueAction3=[!SetOption MeterSteamCommunity Text "Connecting..."][!SetOption MeterSteamCommunity FontColor #CantConnectColor#]

[MeasureSteamCommunityTime]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=3
Substitute="":"99"

[MeasureStore]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=4
Substitute="":"99"
IfConditionMode=1
IfCondition=MeasureStore =1
IfTrueAction=[!SetOption MeterStore Text "Online"][!SetOption MeterStore FontColor #TextOnlineColor#]
IfCondition2=MeasureStore =2
IfTrueAction2=[!SetOption MeterStore Text "Offline"][!SetOption MeterStore FontColor #TextOfflineColor#]
IfCondition3=MeasureStore =99
IfTrueAction3=[!SetOption MeterStore Text "Connecting..."][!SetOption MeterStore FontColor #CantConnectColor#]

[MeasureStoreTime]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=5
Substitute="":"99"

[MeasureSteamUser]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=6
Substitute="":"99"
IfConditionMode=1
IfCondition=MeasureSteamUser =1
IfTrueAction=[!SetOption MeterUser Text "Online"][!SetOption MeterUser FontColor #TextOnlineColor#]
IfCondition2=MeasureSteamUser =2
IfTrueAction2=[!SetOption MeterUser Text "Offline"][!SetOption MeterUser FontColor #TextOfflineColor#]
IfCondition3=MeasureSteamUser =99
IfTrueAction3=[!SetOption MeterUser Text "Conecting..."][!SetOption MeterUser FontColor #CantConnectColor#]

[MeasureUserTime]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=7
Substitute="":"99"
; ------------------------------
[MeasureTFItems]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=8
Substitute="":"99"
IfConditionMode=1
IfCondition=MeasureTFItems =1
IfTrueAction=[!SetOption MeterTFItems Text "Online"][!SetOption MeterTFItems FontColor #TextOnlineColor#]
IfCondition2=MeasureTFItems =2
IfTrueAction2=[!SetOption MeterTFItems Text "Offline"][!SetOption MeterTFItems FontColor #TextOfflineColor#]
IfCondition3=MeasureTFItems =99
IfTrueAction3=[!SetOption MeterTFItems Text "Conecting..."][!SetOption MeterTFItems FontColor #CantConnectColor#]

[MeasureDotaItems]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=9
Substitute="":"99"
IfConditionMode=1
IfCondition=MeasureDotaItems =1
IfTrueAction=[!SetOption MeterDotaItems Text "Online"][!SetOption MeterDotaItems FontColor #TextOnlineColor#]
IfCondition2=MeasureDotaItems =2
IfTrueAction2=[!SetOption MeterDotaItems Text "Offline"][!SetOption MeterDotaItems FontColor #TextOfflineColor#]
IfCondition3=MeasureDotaItems =99
IfTrueAction3=[!SetOption MeterDotaItems Text "Conecting...][!SetOption MeterDotaItems FontColor #CantConnectColor#]
; ---------------------------------
[MeasureCSItems]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=10
Substitute="1":"..."
IfConditionMode=1
IfCondition=MeasureCSItems =1
IfTrueAction=[!SetOption MeterCSGOItems Text "Online"][!SetOption MeterCSGOItems FontColor #TextOnlineColor#]
IfCondition2=MeasureCSItems =2
IfTrueAction2=[!SetOption MeterCSGOItems Text "Offline"][!SetOption MeterCSGOItems FontColor #TextOfflineColor#]
IfCondition3=MeasureCSItems =99
IfTrueAction3=[!SetOption MeterCSGOItems Text "Conecting..."][!SetOption MeterCSGOItems FontColor #CantConnectColor#]
; -------------------------
[MeasureTFGC]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=11
Substitute="":"99"
IfConditionMode=1
IfCondition=MeasureTFGC =1
IfTrueAction=[!SetOption MeterTFGC Text "Online"][!SetOption MeterTFGC FontColor #TextOnlineColor#]
IfCondition2=MeasureTFGC =2
IfTrueAction2=[!SetOption MeterTFGC Text "Offline"][!SetOption MeterTFGC FontColor #TextOfflineColor#]
IfCondition3=MeasureTFGC =99
IfTrueAction3=[!SetOption MeterTFGC Text "Conecting..."][!SetOption MeterTFGC FontColor #CantConnectColor#]

[MeasureDotaGC]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=12
Substitute="":"99"
IfConditionMode=1
IfCondition=MeasureDotaGC =1
IfTrueAction=[!SetOption MeterDotaGC Text "Online"][!SetOption MeterDotaGC FontColor #TextOnlineColor#]
IfCondition2=MeasureDotaGC =2
IfTrueAction2=[!SetOption MeterDotaGC Text "Offline"][!SetOption MeterDotaGC FontColor #TextOfflineColor#]
IfCondition3=MeasureDotaGC =99
IfTrueAction3=[!SetOption MeterDotaGC Text "Conecting..."][!SetOption MeterDotaGC FontColor #CantConnectColor#]
; -------------------------------
;silly me, I named the measure CSGC and the meter CSGOGC
[MeasureCSGC]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureIP]
StringIndex=13
Substitute="":"99"
IfConditionMode=1
IfCondition=MeasureCSGC =1
IfTrueAction=[!SetOption MeterCSGOGC Text "Online"][!SetOption MeterCSGOGC FontColor #TextOnlineColor#]
IfCondition2=MeasureCSGC =2
IfTrueAction2=[!SetOption MeterCSGOGC Text "Offline"][!SetOption MeterCSGOGC FontColor #TextOfflineColor#]
IfCondition3=MeasureCSGC =99
IfTrueAction3=[!SetOption MeterCSGOGC Text "Conecting..."][!SetOption MeterCSGOGC FontColor #CantConnectColor#]

; =============================
; STYLES are used to "centralize" options
; =============================

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
;UPPERCASE FOR TITTLE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=11
AntiAlias=1
ClipString=1

[styleLeftText]
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,15

[styleSeperator]
SolidColor=255,255,255,15

; =============================
; METERS display images, text, bars, etc.
; =============================

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=105
Y=12
W=190
H=18
Text="Steam Status"
; =============================
[MeterStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text=Steam
FontColor=4169E1

[MeterStatus]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
Text=Connecting...
X=200
Y=0r
W=190
H=14

[meterStatusSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=52
W=190
H=1
; =============================
[MeterUserStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text=User API
FontColor=4169E1

[MeterUser]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterUserSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=72
W=190
H=1
; =============================
[MeterCommunityStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=80
W=190
H=14
Text=Community
FontColor=4169E1

[MeterSteamCommunity]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterCommunitySeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=92
W=190
H=1
; =============================
[MeterStoreStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=100
W=190
H=14
Text=Store
FontColor=4169E1

[MeterStore]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterStoreSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=112
W=190
H=1
; =============================
[MeterCSGOItemsStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=120
W=190
H=14
Text=CS:GO Items
FontColor=4169E1

[MeterCSGOItems]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterCSGOItemsSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=132
W=190
H=1
; =============================
[MeterCSGOGCStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=140
W=190
H=14
Text=CS:GO G.C.
FontColor=4169E1

[MeterCSGOGC]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterCSGOGCSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=152
W=190
H=1
; =============================
[MeterTFItemsStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=160
W=190
H=14
Text=TF Items
FontColor=4169E1

[MeterTFItems]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterTFItemsSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=172
W=190
H=1
; =============================
[MeterTFGCStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=180
W=190
H=14
Text=TF G.C.
FontColor=4169E1

[MeterTFGC]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterTFGCSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=192
W=190
H=1
; =============================
[MeterDotaItemsStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=200
W=190
H=14
Text=Dota Items
FontColor=4169E1

[MeterDotaItems]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterDotaItemsSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=212
W=190
H=1
; =============================
[MeterDotaGCStatusLabel]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=220
W=190
H=14
Text=Dota G.C.
FontColor=4169E1

[MeterDotaGC]
Meter=STRING
MeterStyle=stylerightText
FontColor=#CantConnectColor#
StringEffect=Shadow
X=200
Y=0r
W=190
H=14
Text=Connecting...

[meterDotaGCSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=232
W=190
H=1
Last edited by jsmorley on February 8th, 2017, 3:56 pm, edited 1 time in total.
Reason: Removed profanity
User avatar

Re: A few of troubles and questions!!

February 8th, 2017, 6:58 pm
balala
Rainmeter Sage   [4741 posts]

Zaragan wrote:3. Convert time from rss feed (webparser.dll):
If i use "<pubDate>(.*)</pubDate>" i get "Wed, 08 Feb 2017 06:33:40 -0600" but on the web where im parseing ([removed profanity]? does this word really exist? XD) the data (http://animeflv.net/feeds/) it shows fine and on my language (Spanish: "miércoles, 8 de febrero de 2017 13:33") i need to convert the time but didnt understand the docs i read about it, a little help please?

Did I misunderstand something? I can't find in your code the measure which should return the date. Where is it?
However, if you have this into another code, you should find the appropriate measure (probably a child WebParser measure) and add the following options to it:

Code: Select all

RegExpSubstitute=1
Substitute="Mon":"lunes","Tue":"martes","Wed":"miércoles","Thu":"jueves","Fri":"viernes","Sat":"sábado","Sun":"domingo","Jan":"de enero de","Feb":"de febrero de","Mar":"de marzo de","Apr":"de abril de","Mai":"de mayo de","Jun":"de junio de","Jul":"de julio de","Aug":"de agosto de","Sep":"de septiembre de","Oct":"de octubre de","Nov":"de noviembre de","Dec":"de diciembre de"," 0(\d{1}) ":" \1 "

Please check everything in the Substitute option, before the " 0(\d{1}) ":" \1 " part, because I've translated them with Google Translator and I'm not sure everything is ok (I don't speak Spanish at all).

Also, I'm working on the fourth question...
User avatar

Re: A few of troubles and questions!!

February 8th, 2017, 9:25 pm
balala
Rainmeter Sage   [4741 posts]

Zaragan wrote:4. This [removed profanity] is hidding from me since i start playing with the code on rainmeter and still didnt find it: On this steam status skin when some service goes down it changes to "offline" and SHOULD change the color to red but WHEN I REFRESH the skin only goes to gray and not to red,and when the skin refreshes by itself it goes green AGAIN. :headbang: :sos:

The skin isn't refreshed by itself, but is updated.
When you're using a variable (or measure) into a !SetOption bang, usually you have to use the escaping variables. As such, replace in each !SetOption bang the name of the variables, as it follows:

Code: Select all

[MeasureIP]
...
IfTrueAction=[!SetOption MeterStatus Text "Online"][!SetOption MeterStatus FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterStatus Text "Offline"][!SetOption MeterStatus FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterStatus Text "Connecting..."][!SetOption MeterStatus FontColor "#*TextCantConnectColor*#"]

[MeasureSteamCommunity]
...
IfTrueAction=[!SetOption MeterSteamCommunity Text "Online"][!SetOption MeterSteamCommunity FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterSteamCommunity Text "Offline"][!SetOption MeterSteamCommunity FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterSteamCommunity Text "Connecting..."][!SetOption MeterSteamCommunity FontColor "#*CantConnectColor*#"]

[MeasureStore]
...
IfTrueAction=[!SetOption MeterStore Text "Online"][!SetOption MeterStore FontColor #*TextOnlineColor*#]
...
IfTrueAction2=[!SetOption MeterStore Text "Offline"][!SetOption MeterStore FontColor #*TextOfflineColor*#]
...
IfTrueAction3=[!SetOption MeterStore Text "Connecting..."][!SetOption MeterStore FontColor #*CantConnectColor*#]

[MeasureSteamUser]
...
IfTrueAction=[!SetOption MeterUser Text "Online"][!SetOption MeterUser FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterUser Text "Offline"][!SetOption MeterUser FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterUser Text "Conecting..."][!SetOption MeterUser FontColor "#*CantConnectColor*#"]

[MeasureTFItems]
...
IfTrueAction=[!SetOption MeterTFItems Text "Online"][!SetOption MeterTFItems FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterTFItems Text "Offline"][!SetOption MeterTFItems FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterTFItems Text "Conecting..."][!SetOption MeterTFItems FontColor "#*CantConnectColor*#"]

[MeasureDotaItems]
...
IfTrueAction=[!SetOption MeterDotaItems Text "Online"][!SetOption MeterDotaItems FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterDotaItems Text "Offline"][!SetOption MeterDotaItems FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterDotaItems Text "Conecting...][!SetOption MeterDotaItems FontColor "#*CantConnectColor*#"]

[MeasureCSItems]
...
IfTrueAction=[!SetOption MeterCSGOItems Text "Online"][!SetOption MeterCSGOItems FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterCSGOItems Text "Offline"][!SetOption MeterCSGOItems FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterCSGOItems Text "Conecting..."][!SetOption MeterCSGOItems FontColor "#*CantConnectColor*#"]

[MeasureTFGC]
...
IfTrueAction=[!SetOption MeterTFGC Text "Online"][!SetOption MeterTFGC FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterTFGC Text "Offline"][!SetOption MeterTFGC FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterTFGC Text "Conecting..."][!SetOption MeterTFGC FontColor "#*CantConnectColor*#"]

[MeasureDotaGC]
...
IfTrueAction=[!SetOption MeterDotaGC Text "Online"][!SetOption MeterDotaGC FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterDotaGC Text "Offline"][!SetOption MeterDotaGC FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterDotaGC Text "Conecting..."][!SetOption MeterDotaGC FontColor "#*CantConnectColor*#"]

[MeasureCSGC]
...
IfTrueAction=[!SetOption MeterCSGOGC Text "Online"][!SetOption MeterCSGOGC FontColor "#*TextOnlineColor*#"]
...
IfTrueAction2=[!SetOption MeterCSGOGC Text "Offline"][!SetOption MeterCSGOGC FontColor "#*TextOfflineColor*#"]
...
IfTrueAction3=[!SetOption MeterCSGOGC Text "Conecting..."][!SetOption MeterCSGOGC FontColor "#*CantConnectColor*#"]

Leave untouched the options I haven't post above.
Also you have to know that although a color code is composed by three or four numbers, it's a string and as such, would be a good idea to include them into quotation marks (as I did above).

Re: A few of troubles and questions!!

February 8th, 2017, 10:28 pm
Zaragan
   [45 posts]

balala wrote:Did I misunderstand something? I can't find in your code the measure which should return the date. Where is it?
However, if you have this into another code, you should find the appropriate measure (probably a child WebParser measure) and add the following options to it:

I didnt post it xD

Code: Select all

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Update=1000
Background=#@#Sin.png
BackgroundMode=3
BackgroundMargins=0,34,0,14
DynamicWindowSize=1
AccurateText=1

[Metadata]
; Contains basic information of the skin.
Name=AnimeFLV Feed
Author=Zaragan
Information=Displays Rss feed.
License=Creative Commons BY-NC-SA 3.0
Version=1.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Courier New
textSize=8
colorBar=235,170,0,255
colorText=4169E1
Data=.*<item>.*<title>(.*)</title>.*<pubDate>(.*)</pubDate>

; ===========================
; MEASURES return some kind of value
; ===========================

[measureAPILink]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1000
Url=http://animeflv.net/feeds/
RegExp="(?siU).*<item>.*<title>(.*)</title>.*<pubDate>(.*)</pubDate>#Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data##Data#"

; LETS START
[measureTitle1]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=1
[measureDate1]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=2
; =============================
[measureTitle2]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=3
[measureDate2]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=4
; =============================
[measureTitle3]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=5
[measureDate3]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=6
; =============================
[measureTitle4]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=7
[measureDate4]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=8
; =============================
[measureTitle5]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=9
[measureDate5]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=10
; =============================
[measureTitle6]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=11
[measureDate6]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=12
; =============================
[measureTitle7]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=13
[measureDate7]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=14
; =============================
[measureTitle8]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=15
[measureDate8]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=16
; =============================
[measureTitle9]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=17
[measureDate9]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=18
; =============================
[measureTitle10]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=19
[measureDate10]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=20
; =============================
[measureTitle11]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=21
[measureDate11]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=22
; =============================
[measureTitle12]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=23
[measureDate12]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=24
; =============================
[measureTitle13]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=25
[measureDate13]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=26
; =============================
[measureTitle14]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=27
[measureDate14]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=28
; =============================
[measureTitle15]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=29
[measureDate15]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=30
; =============================
[measureTitle16]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=31
[measureDate16]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=32
; =============================
[measureTitle17]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=33
[measureDate17]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=34
; =============================
[measureTitle18]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=35
[measureDate18]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=36
; =============================
[measureTitle19]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=37
[measureDate19]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=38
; =============================
[measureTitle20]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=39
[measureDate20]
Measure=Plugin
Plugin=WebParser.dll
Url=[measureAPILink]
StringIndex=40

; =============================
; STYLES are used to "centralize" options
; =============================

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
;UPPERCASE FOR TITTLE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=255,255,255,255
FontFace=#fontName#
FontSize=11
AntiAlias=1
ClipString=1

[styleLeftText]
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleSeperator]
SolidColor=255,255,255,15

; =============================
; METERS display images, text, bars, etc.
; =============================

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=207
Y=12
W=380
H=18
Text="AnimeFLV Feed"
; =============================
[meterLabel1]
Meter=STRING
MeterStyle=styleLeftText
X=55
Y=40
W=80
H=14
Text="Nombre"

[meterLabel2]
Meter=STRING
MeterStyle=styleLeftText
X=290
Y=0r
W=40
H=14
Text="Fecha"

[meterSeperator1]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=52
W=398
H=1
; =============================
[meterValue1]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle1
X=10
Y=60
W=180
H=14
AntiAlias=1

[meterValue2]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate1
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator2]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=72
W=398
H=1
; =============================
[meterValue6]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle2
X=10
Y=80
W=180
H=14
AntiAlias=1

[meterValue7]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate2
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator3]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=92
W=398
H=1
; =============================
[meterValue8]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle3
X=10
Y=100
W=180
H=14
AntiAlias=1

[meterValue9]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate3
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator4]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=112
W=398
H=1
; =============================
[meterValue10]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle4
X=10
Y=120
W=180
H=14
AntiAlias=1

[meterValue11]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate4
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator5]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=132
W=398
H=1
; =============================
[meterValue12]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle5
X=10
Y=140
W=180
H=14
AntiAlias=1

[meterValue13]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate5
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator6]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=152
W=398
H=1
; =============================
[meterValue14]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle6
X=10
Y=160
W=180
H=14
AntiAlias=1

[meterValue15]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate6
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator7]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=172
W=398
H=1
; =============================
[meterValue16]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle7
X=10
Y=180
W=180
H=14
AntiAlias=1

[meterValue17]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate7
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator8]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=192
W=398
H=1
; =============================
[meterValue18]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle8
X=10
Y=200
W=180
H=14
AntiAlias=1

[meterValue19]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate8
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator9]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=212
W=398
H=1
; =============================
[meterValue20]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle9
X=10
Y=220
W=180
H=14
AntiAlias=1

[meterValue21]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate9
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator10]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=232
W=398
H=1
; =============================
[meterValue22]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle10
X=10
Y=240
W=180
H=14
AntiAlias=1

[meterValue23]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate10
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator11]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=252
W=398
H=1
; =============================
[meterValue24]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle11
X=10
Y=260
W=180
H=14
AntiAlias=1

[meterValue25]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate11
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator12]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=272
W=398
H=1
; =============================
[meterValue26]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle12
X=10
Y=280
W=180
H=14
AntiAlias=1

[meterValue27]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate12
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator13]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=292
W=398
H=1
; =============================
[meterValue28]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle13
X=10
Y=300
W=180
H=14
AntiAlias=1

[meterValue29]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate13
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator14]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=312
W=398
H=1
; =============================
[meterValue30]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle14
X=10
Y=320
W=180
H=14
AntiAlias=1

[meterValue31]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate14
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator15]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=332
W=398
H=1
; =============================
[meterValue32]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle15
X=10
Y=340
W=180
H=14
AntiAlias=1

[meterValue33]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate15
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator16]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=352
W=398
H=1
; =============================
[meterValue34]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle16
X=10
Y=360
W=180
H=14
AntiAlias=1

[meterValue35]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate16
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator17]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=372
W=398
H=1
; =============================
[meterValue36]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle17
X=10
Y=380
W=180
H=14
AntiAlias=1

[meterValue37]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate17
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator18]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=392
W=398
H=1
; =============================
[meterValue38]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle18
X=10
Y=400
W=180
H=14
AntiAlias=1

[meterValue39]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate18
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator19]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=412
W=398
H=1
; =============================
[meterValue40]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle19
X=10
Y=420
W=180
H=14
AntiAlias=1

[meterValue41]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate19
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator20]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=432
W=398
H=1
; =============================
[meterValue42]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureTitle20
X=10
Y=440
W=180
H=14
AntiAlias=1

[meterValue43]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureDate20
X=210
Y=0r
W=199
H=14
AntiAlias=1

[meterSeparator21]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=452
W=398
H=1
; =============================
User avatar

Re: A few of troubles and questions!!

February 9th, 2017, 11:46 am
balala
Rainmeter Sage   [4741 posts]

Zaragan wrote:I didnt post it xD

Ok, add the RegExpSubstitute and Substitute options to each of the [measureDate1] - [measureDate20] measures.
Have you read my above reply to the fourth (last) question? Have you succeeded?

Re: A few of troubles and questions!!

February 9th, 2017, 4:17 pm
Zaragan
   [45 posts]

I did it on the feed skin and works (now its translated) BUT i want to fix the TIME ZONE, not the language :P (i'm working on a translation with the include feature :D )
User avatar

Re: A few of troubles and questions!!

February 9th, 2017, 4:25 pm
balala
Rainmeter Sage   [4741 posts]

Zaragan wrote:I did it on the feed skin and works (now its translated) BUT i want to fix the TIME ZONE, not the language :P (i'm working on a translation with the include feature :D )

That's a bit more complicated. Not impossible, but for sure more complicated.
A bit later, I'll try to figure out how to fix it.

Re: A few of troubles and questions!!

February 9th, 2017, 4:30 pm
Zaragan
   [45 posts]

No worries man!! You helped me more than i spected! (i love to figure out how to do this things :great: ) Almost discovered the includes feature and my mind just exploded, now im working on a config, styles and languages files uffffff a lot of work

EDIT: I had to change the order of the formula because of "Mar" (Tuesday) and "Mar" (March) but now it works fine!
User avatar

Re: A few of troubles and questions!!

February 9th, 2017, 6:29 pm
balala
Rainmeter Sage   [4741 posts]

Zaragan wrote:No worries man!! You helped me more than i spected! (i love to figure out how to do this things :great: ) Almost discovered the includes feature and my mind just exploded, now im working on a config, styles and languages files uffffff a lot of work

Ok, then let me know if you have any other question.

Return to “Help: Rainmeter Skins”



Who is online

Users browsing this forum: Bing [Bot] and 5 guests