from my router (dual).
I have no problem with get the url login and webpage
back from the router the problem is to select the
2 ip's with Regex.
the page has crlf's and I get stuck trying to skip them.
I have tried \W \r etc but still get stuck.
i get the debug
Code: Select all
DEBUG: (07:02:19.219) WebParser.dll: [LoadIP] (Index 1)
0.0.0.0
DEBUG: (07:02:19.219) WebParser.dll: [LoadIP] (Index 2) "---");
else
document.write('216.208.38.122
the code is
----------------------------------
Code: Select all
[Rainmeter]
Author=Malcolm Newton
Update=1000
BackgroundMode=1
[Variables]
skin.Style=Horizontal
@Include=#SKINSPATH#\Variables.inc
@Include2=#ROOTCONFIGPATH#SETTINGS\Style#skin.Style#.inc
skin.Width=#width.Notes#
Fpath=#CURRENTPATH#downloadfile\html.txt
;Url1=http://admin:admin@192.168.1.1
Url1=file://c:\temp\routers.txt
RegExp1=(?siU)<td width="32%">(\W.*) .*<td width="32%">.*document.write\((\W.*) 
; MEASURES ====================================
[LoadIP]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=#UrL1#
RegExp=#RegExp1#
setindex=1
Debug=1
;[DISPLAY METERS]==================================
[Line]
Meter=IMAGE
MeterStyle=sTextL
[Icon]
Meter=IMAGE
MeterStyle=sIcon
ImageName=network.png
[Title]
Meter=STRING
MeterStyle=sTitle
Text=router ip's
x=30
[Price2]
MeasureName=loadIP
Meter=STRING
MeterStyle=sTextL
X=3
y=22r
NumOfDecimals=2
text=WAN IP1 : %1
[Price3]
MeasureName=loadIP
Meter=STRING
MeterStyle=sTextL
X=2
y=12r
NumOfDecimals=2
text=WAN IP2 : %2
the file copy of the url is
Code: Select all
if (document.formsummary.dualwanEnabled.value=="0") document.write("WAN IP");
else document.write("WAN1 IP");
</script>
</font></a></u></font><font color="#000000"> :</font> </td>
<td width="32%">
0.0.0.0
</td>
<td width="27%">
<input type=button value=Disconnect onClick=falseSubmit('12')> <input type=button value=Connect onClick=falseSubmit('13')>
</td>
</tr>
<tr valign="middle">
<td width="41%"><font color="#0000FF"><u><a href="network.htm"><font color="#000000">
<script>
if (document.formsummary.dualwanEnabled.value=="0") document.write("DMZ IP");
else document.write("WAN2 IP");
</script>
</font></a></u></font><font color="#000000"> :</font> </td>
<td width="32%">
<script>
if ((document.formsummary.dualwanEnabled.value=="0") && (document.formsummary.DmzRangeFlag.value=="1"))
document.write("---");
else
document.write('216.208.38.122 ');
</script>
</td>
<td width="27%">
</td>
</tr>
Any ideas would really help have spent quite a
few hours on this , found EditPad as a handy editor
with regexp search facility , helps a lot but still stuck.