[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"
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"
[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%"
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.
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