Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
[measurePrinter]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1500
Url=http://studentaffairs.case.edu/services/print2here/
RegExp="(?siU)<tr><td>Print2Carlton</td><td align="right"><font color="(.*)">(.*)</span>.*<tr><td>Print2Fribley</td><td align="right"><font color="(.*)">(.*)</span>"
[measurePrinter1Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[measurePrinter]
StringIndex=1
[measurePrinter1Status]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[measurePrinter]
StringIndex=2
[measurePrinter2Name]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[measurePrinter]
StringIndex=3
[measurePrinter2Status]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[measurePrinter]
StringIndex=4
[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
[MeterPrinter1Name]
Meter=STRING
MeterStyle=styleTitle
MeasureName=measurePrinter1Name
W=100
H=15
X=50
Y=0
[MeterPrinter1Status]
Meter=STRING
MeterStyle=styleTitle
MeasureName=measurePrinter1Status
W=100
H=15
X=50
Y=R
[MeterPrinter2Name]
Meter=STRING
MeterStyle=styleTitle
MeasureName=measurePrinter2Name
W=100
H=15
X=130
Y=0
[MeterPrinter2Status]
Meter=STRING
MeterStyle=styleTitle
MeasureName=measurePrinter2Status
W=100
H=15
X=130
Y=R
The key thing you were stumbling on is how "parent" and "child" WebParser meters work with StringIndexes.
What you are doing in the first "parent" WebParser measure, [measurePrinter], is to "capture" four different things from the HTML stream. It will put them in four StringIndexes, 1-4. Your RegExp works just fine, so that is a great start.
Now you want to use four different "child" WebParser measures, to pick off each of those StringIndexes one at a time. Note that the "child" measure reference the "parent" as the URL= setting. Then you can reference those four new measures in any meters you like to display the results.
So I changed things so you are getting the right results in the right measures. Then I just whacked out some meters to display the text. You will no doubt want to mess with the cosmetics and positioning and such, but this should get you started.
Be careful with StringAlign=Center and StringAlign=Right. They require both a W= (width) that is big enough to hold the entire string, and then an X= (left to right position) that is where you want to position it. In a lot of cases folks will use for instance W=100 and X=50, which you might guess will center it on the 50th pixel, half to the left and half to the right. StringAlign=Right works much the same way, but you need to specify where the X= should be, and it will display "back" from there. In either case you need a W= set so there is enough room to display things. My point is that if you for instance use X=0 and StringAlign=Center, half the text will just not show at all. Same with StringAlign=Right. X=0 and StringAlign=Right will result in no text at all. It's all on the floor off the left of your screen...
9-27-2011 12-43-00 AM.jpg
You do not have the required permissions to view the files attached to this post.