I didn't think about the two MeasureName linked on the display part, wonderful idea!
Btw, I have to extract data of first 4 players in a ranking. In the HTML code, they are in a sequential order, that's because I thought about searchin in a unique [Infos] tag.. Am I wrong?
Actually, I have other problems, this is the actual code:
Code: Select all
[Variables]
PLAYER=<div id="handle"><font.*>(.*)</font>(<font.*>(.*)</font>)?(<font.*>(.*)</font>)?(<font.*>(.*)</font>)?</div>
[Infos]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3
Url=#URL#
RegExp="(?siU)<TITLE>(.*)</TITLE>#PLAYER##PLAYER##PLAYER##PLAYER#"
[Player1.1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Infos]
StringIndex=4
[Player1.2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Infos]
StringIndex=6
[Player1.3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Infos]
StringIndex=8
[Player1.4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Infos]
StringIndex=10
[Player1Text]
MeasureName=Player1.1
MeasureName2=Player1.2
MeasureName3=Player1.3
MeasureName4=Player1.4
Meter=String
Text="%1%2%3%4"
The same thing for every 4 players.
Let's assume a source like this:
Code: Select all
<div id="handle"><font color="#FFFFFF"></font><font color="#000000">-</font><font color="#FFFFFF">Text1</font><font color="#0000FF">-</font></div>
In the log file, I obtain (at a particular row):
Code: Select all
DEBUG: (08:58:02.363) WebParser: (Index 17)
DEBUG: (08:58:02.363) WebParser: (Index 18) <font color="#000000">-</font><font color="#FFFFFF">Text1</font><font color="#0000FF">-</font>
DEBUG: (08:58:02.363) WebParser: (Index 19) -</font><font color="#FFFFFF">Text1</font><font color="#0000FF">-
and next lines are about the next player. I'm not able to capture entire "-Text1-" without all those colours tags. Maybe (surely) I'm wrong about something
Thanks really a lot for the support