I am having a little trouble understanding why my parser is not working. (And i know it might be something silly i've missed)
I am trying to make it read from a local text file that has this text inside:
CS@OK
S1@OK
S2@OK
S3@OK
UO@100
This is my code for rainmeter:
Code: Select all
; ----------------------------------
[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Author=anon
AppVersion=1003000
Update=1000
[Metadata]
; Contains basic information of the skin.
Name=untitled
Description=This skin displays basic system stats.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0
[Variables]
URL="C:\Users\Admin\Documents\Rainmeter\Skins\illustro\Serv\serverstats.txt"
fontName=Trebuchet MS
FontColor=255, 255, 255, 255
;===================MEASURES=================
[MeasureSERSTAT]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=#URL#
RegExp="(?siU)@(.+);(.+)@(.+);(.+)@(.+);(.+)@(.+);(.+)@(.+);(.+)@(.+);(.+)@(.+);"
[MeasureCS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=[MeasureSERSTAT]
StringIndex=3
;=================METERS======================
[MeterBackground]
Meter=IMAGE
X=1
Y=1
H=220
W=300
SolidColor=0,0,0,255
[MeterSTATUS]
MeasureName=MeasureCS
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureCS]
If my regexp is wrong, would someone be kind enough to help me along by explaining exactly where I am going wrong and what steps I should take to make it work?
Thanks.