I write those codes with many pleasure. Stay tuned...
It is currently March 29th, 2024, 6:38 am
Help with webparser
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Help with webparser
Next code:
Please let me know what do you think.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,1
SkinWidth=932
SkinHeight=515
[Variables]
ToolTip=0
Item=(?(?=.*<img alt="").*class=".*" src="(.*)">.*<h4><a href=".*">(.*)</a></h4>.*<h6 class="text-muted">(.*)</h6>.*<p>(.*)<a href=".*">.*</div>)
ItemNo=(?(?=.*<img alt="").*class="cover-overlay" src=".*">)
PositionX=0
[StringStyle]
W=430
ClipString=1
FontColor=220,220,220
FontEffectColor=0,0,0,180
StringEffect=Shadow
SolidColor=0,0,0,1
FontFace=Segoe UI
StringStyle=BOLD
AntiAlias=1
Text=%1
[ImageStyle]
W=180
H=132
PreserveAspectRatio=1
[BorderStyle]
MyModifiers1=Fill Color 100,160,150 | StrokeWidth 2 | Stroke Color 46,115,31,255
[MeasureParent]
Measure=WebParser
UpdateRate=900
Url=https://thegamesdb.net/
RegExp=(?siU)#ItemNo##ItemNo##ItemNo##ItemNo##ItemNo##ItemNo##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item##Item#
[MeasureImage1]
Measure=WebParser
Url=[MeasureParent]
StringIndex=1
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage1"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage1"][!CommandMeasure "MeasureDownloadImage1" "Update"]
[MeasureTitle1]
Measure=WebParser
Url=[MeasureParent]
StringIndex=2
IfMatch=^$
IfMatchAction=[!SetVariable Game1Exists "0"]
IfNotMatchAction=[!SetVariable Game1Exists "1"]
[MeasurePlatform1]
Measure=WebParser
Url=[MeasureParent]
StringIndex=3
[MeasureDescription1]
Measure=WebParser
Url=[MeasureParent]
StringIndex=4
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage1]
Measure=WebParser
URL=[&MeasureImage1]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage2]
Measure=WebParser
Url=[MeasureParent]
StringIndex=5
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage2"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage2"][!CommandMeasure "MeasureDownloadImage2" "Update"]
[MeasureTitle2]
Measure=WebParser
Url=[MeasureParent]
StringIndex=6
IfMatch=^$
IfMatchAction=[!SetVariable Game2Exists "0"]
IfNotMatchAction=[!SetVariable Game2Exists "1"]
[MeasurePlatform2]
Measure=WebParser
Url=[MeasureParent]
StringIndex=7
[MeasureDescription2]
Measure=WebParser
Url=[MeasureParent]
StringIndex=8
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage2]
Measure=WebParser
URL=[&MeasureImage2]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage3]
Measure=WebParser
Url=[MeasureParent]
StringIndex=9
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage3"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage3"][!CommandMeasure "MeasureDownloadImage3" "Update"]
[MeasureTitle3]
Measure=WebParser
Url=[MeasureParent]
StringIndex=10
IfMatch=^$
IfMatchAction=[!SetVariable Game3Exists "0"]
IfNotMatchAction=[!SetVariable Game3Exists "1"]
[MeasurePlatform3]
Measure=WebParser
Url=[MeasureParent]
StringIndex=11
[MeasureDescription3]
Measure=WebParser
Url=[MeasureParent]
StringIndex=12
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage3]
Measure=WebParser
URL=[&MeasureImage3]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage4]
Measure=WebParser
Url=[MeasureParent]
StringIndex=13
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage4"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage4"][!CommandMeasure "MeasureDownloadImage4" "Update"]
[MeasureTitle4]
Measure=WebParser
Url=[MeasureParent]
StringIndex=14
IfMatch=^$
IfMatchAction=[!SetVariable Game4Exists "0"]
IfNotMatchAction=[!SetVariable Game4Exists "1"]
[MeasurePlatform4]
Measure=WebParser
Url=[MeasureParent]
StringIndex=15
[MeasureDescription4]
Measure=WebParser
Url=[MeasureParent]
StringIndex=16
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage4]
Measure=WebParser
URL=[&MeasureImage4]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage5]
Measure=WebParser
Url=[MeasureParent]
StringIndex=17
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage5"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage5"][!CommandMeasure "MeasureDownloadImage5" "Update"]
[MeasureTitle5]
Measure=WebParser
Url=[MeasureParent]
StringIndex=18
IfMatch=^$
IfMatchAction=[!SetVariable Game5Exists "0"]
IfNotMatchAction=[!SetVariable Game5Exists "1"]
[MeasurePlatform5]
Measure=WebParser
Url=[MeasureParent]
StringIndex=19
[MeasureDescription5]
Measure=WebParser
Url=[MeasureParent]
StringIndex=20
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage5]
Measure=WebParser
URL=[&MeasureImage5]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage6]
Measure=WebParser
Url=[MeasureParent]
StringIndex=21
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage6"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage6"][!CommandMeasure "MeasureDownloadImage6" "Update"]
[MeasureTitle6]
Measure=WebParser
Url=[MeasureParent]
StringIndex=22
IfMatch=^$
IfMatchAction=[!SetVariable Game6Exists "0"]
IfNotMatchAction=[!SetVariable Game6Exists "1"]
[MeasurePlatform6]
Measure=WebParser
Url=[MeasureParent]
StringIndex=23
[MeasureDescription6]
Measure=WebParser
Url=[MeasureParent]
StringIndex=24
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage6]
Measure=WebParser
URL=[&MeasureImage6]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage7]
Measure=WebParser
Url=[MeasureParent]
StringIndex=25
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage7"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage7"][!CommandMeasure "MeasureDownloadImage7" "Update"]
[MeasureTitle7]
Measure=WebParser
Url=[MeasureParent]
StringIndex=26
IfMatch=^$
IfMatchAction=[!SetVariable Game7Exists "0"]
IfNotMatchAction=[!SetVariable Game7Exists "1"]
[MeasurePlatform7]
Measure=WebParser
Url=[MeasureParent]
StringIndex=27
[MeasureDescription7]
Measure=WebParser
Url=[MeasureParent]
StringIndex=28
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage7]
Measure=WebParser
URL=[&MeasureImage7]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage8]
Measure=WebParser
Url=[MeasureParent]
StringIndex=29
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage8"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage8"][!CommandMeasure "MeasureDownloadImage8" "Update"]
[MeasureTitle8]
Measure=WebParser
Url=[MeasureParent]
StringIndex=30
IfMatch=^$
IfMatchAction=[!SetVariable Game8Exists "0"]
IfNotMatchAction=[!SetVariable Game8Exists "1"]
[MeasurePlatform8]
Measure=WebParser
Url=[MeasureParent]
StringIndex=31
[MeasureDescription8]
Measure=WebParser
Url=[MeasureParent]
StringIndex=32
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage8]
Measure=WebParser
URL=[&MeasureImage8]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage9]
Measure=WebParser
Url=[MeasureParent]
StringIndex=33
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage9"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage9"][!CommandMeasure "MeasureDownloadImage9" "Update"]
[MeasureTitle9]
Measure=WebParser
Url=[MeasureParent]
StringIndex=34
IfMatch=^$
IfMatchAction=[!SetVariable Game9Exists "0"]
IfNotMatchAction=[!SetVariable Game9Exists "1"]
[MeasurePlatform9]
Measure=WebParser
Url=[MeasureParent]
StringIndex=35
[MeasureDescription9]
Measure=WebParser
Url=[MeasureParent]
StringIndex=36
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage9]
Measure=WebParser
URL=[&MeasureImage9]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage10]
Measure=WebParser
Url=[MeasureParent]
StringIndex=37
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage10"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage10"][!CommandMeasure "MeasureDownloadImage10" "Update"]
[MeasureTitle10]
Measure=WebParser
Url=[MeasureParent]
StringIndex=38
IfMatch=^$
IfMatchAction=[!SetVariable Game10Exists "0"]
IfNotMatchAction=[!SetVariable Game10Exists "1"]
[MeasurePlatform10]
Measure=WebParser
Url=[MeasureParent]
StringIndex=39
[MeasureDescription10]
Measure=WebParser
Url=[MeasureParent]
StringIndex=40
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage10]
Measure=WebParser
URL=[&MeasureImage10]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage11]
Measure=WebParser
Url=[MeasureParent]
StringIndex=41
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage11"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage11"][!CommandMeasure "MeasureDownloadImage11" "Update"]
[MeasureTitle11]
Measure=WebParser
Url=[MeasureParent]
StringIndex=42
IfMatch=^$
IfMatchAction=[!SetVariable Game11Exists "0"]
IfNotMatchAction=[!SetVariable Game11Exists "1"]
[MeasurePlatform11]
Measure=WebParser
Url=[MeasureParent]
StringIndex=43
[MeasureDescription11]
Measure=WebParser
Url=[MeasureParent]
StringIndex=44
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage11]
Measure=WebParser
URL=[&MeasureImage11]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage12]
Measure=WebParser
Url=[MeasureParent]
StringIndex=45
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage12"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage12"][!CommandMeasure "MeasureDownloadImage12" "Update"]
[MeasureTitle12]
Measure=WebParser
Url=[MeasureParent]
StringIndex=46
IfMatch=^$
IfMatchAction=[!SetVariable Game12Exists "0"]
IfNotMatchAction=[!SetVariable Game12Exists "1"]
[MeasurePlatform12]
Measure=WebParser
Url=[MeasureParent]
StringIndex=47
[MeasureDescription12]
Measure=WebParser
Url=[MeasureParent]
StringIndex=48
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage12]
Measure=WebParser
URL=[&MeasureImage12]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage13]
Measure=WebParser
Url=[MeasureParent]
StringIndex=49
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage13"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage13"][!CommandMeasure "MeasureDownloadImage13" "Update"]
[MeasureTitle13]
Measure=WebParser
Url=[MeasureParent]
StringIndex=50
IfMatch=^$
IfMatchAction=[!SetVariable Game13Exists "0"]
IfNotMatchAction=[!SetVariable Game13Exists "1"]
[MeasurePlatform13]
Measure=WebParser
Url=[MeasureParent]
StringIndex=51
[MeasureDescription13]
Measure=WebParser
Url=[MeasureParent]
StringIndex=52
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage13]
Measure=WebParser
URL=[&MeasureImage13]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage14]
Measure=WebParser
Url=[MeasureParent]
StringIndex=53
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage14"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage14"][!CommandMeasure "MeasureDownloadImage14" "Update"]
[MeasureTitle14]
Measure=WebParser
Url=[MeasureParent]
StringIndex=54
IfMatch=^$
IfMatchAction=[!SetVariable Game14Exists "0"]
IfNotMatchAction=[!SetVariable Game14Exists "1"]
[MeasurePlatform14]
Measure=WebParser
Url=[MeasureParent]
StringIndex=55
[MeasureDescription14]
Measure=WebParser
Url=[MeasureParent]
StringIndex=56
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage14]
Measure=WebParser
URL=[&MeasureImage14]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage15]
Measure=WebParser
Url=[MeasureParent]
StringIndex=57
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage15"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage15"][!CommandMeasure "MeasureDownloadImage15" "Update"]
[MeasureTitle15]
Measure=WebParser
Url=[MeasureParent]
StringIndex=58
IfMatch=^$
IfMatchAction=[!SetVariable Game15Exists "0"]
IfNotMatchAction=[!SetVariable Game15Exists "1"]
[MeasurePlatform15]
Measure=WebParser
Url=[MeasureParent]
StringIndex=59
[MeasureDescription15]
Measure=WebParser
Url=[MeasureParent]
StringIndex=60
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage15]
Measure=WebParser
URL=[&MeasureImage15]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage16]
Measure=WebParser
Url=[MeasureParent]
StringIndex=61
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage16"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage16"][!CommandMeasure "MeasureDownloadImage16" "Update"]
[MeasureTitle16]
Measure=WebParser
Url=[MeasureParent]
StringIndex=62
IfMatch=^$
IfMatchAction=[!SetVariable Game16Exists "0"]
IfNotMatchAction=[!SetVariable Game16Exists "1"]
[MeasurePlatform16]
Measure=WebParser
Url=[MeasureParent]
StringIndex=63
[MeasureDescription16]
Measure=WebParser
Url=[MeasureParent]
StringIndex=64
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage16]
Measure=WebParser
URL=[&MeasureImage16]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage17]
Measure=WebParser
Url=[MeasureParent]
StringIndex=65
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage17"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage17"][!CommandMeasure "MeasureDownloadImage17" "Update"]
[MeasureTitle17]
Measure=WebParser
Url=[MeasureParent]
StringIndex=66
IfMatch=^$
IfMatchAction=[!SetVariable Game17Exists "0"]
IfNotMatchAction=[!SetVariable Game17Exists "1"]
[MeasurePlatform17]
Measure=WebParser
Url=[MeasureParent]
StringIndex=67
[MeasureDescription17]
Measure=WebParser
Url=[MeasureParent]
StringIndex=68
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage17]
Measure=WebParser
URL=[&MeasureImage17]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage18]
Measure=WebParser
Url=[MeasureParent]
StringIndex=69
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage18"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage18"][!CommandMeasure "MeasureDownloadImage18" "Update"]
[MeasureTitle18]
Measure=WebParser
Url=[MeasureParent]
StringIndex=70
IfMatch=^$
IfMatchAction=[!SetVariable Game18Exists "0"]
IfNotMatchAction=[!SetVariable Game18Exists "1"]
[MeasurePlatform18]
Measure=WebParser
Url=[MeasureParent]
StringIndex=71
[MeasureDescription18]
Measure=WebParser
Url=[MeasureParent]
StringIndex=72
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage18]
Measure=WebParser
URL=[&MeasureImage18]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage19]
Measure=WebParser
Url=[MeasureParent]
StringIndex=73
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage19"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage19"][!CommandMeasure "MeasureDownloadImage19" "Update"]
[MeasureTitle19]
Measure=WebParser
Url=[MeasureParent]
StringIndex=74
IfMatch=^$
IfMatchAction=[!SetVariable Game19Exists "0"]
IfNotMatchAction=[!SetVariable Game19Exists "1"]
[MeasurePlatform19]
Measure=WebParser
Url=[MeasureParent]
StringIndex=75
[MeasureDescription19]
Measure=WebParser
Url=[MeasureParent]
StringIndex=76
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage19]
Measure=WebParser
URL=[&MeasureImage19]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage20]
Measure=WebParser
Url=[MeasureParent]
StringIndex=77
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage20"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage20"][!CommandMeasure "MeasureDownloadImage20" "Update"]
[MeasureTitle20]
Measure=WebParser
Url=[MeasureParent]
StringIndex=78
IfMatch=^$
IfMatchAction=[!SetVariable Game20Exists "0"]
IfNotMatchAction=[!SetVariable Game20Exists "1"]
[MeasurePlatform20]
Measure=WebParser
Url=[MeasureParent]
StringIndex=79
[MeasureDescription20]
Measure=WebParser
Url=[MeasureParent]
StringIndex=80
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage20]
Measure=WebParser
URL=[&MeasureImage20]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage21]
Measure=WebParser
Url=[MeasureParent]
StringIndex=81
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage21"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage21"][!CommandMeasure "MeasureDownloadImage21" "Update"]
[MeasureTitle21]
Measure=WebParser
Url=[MeasureParent]
StringIndex=82
IfMatch=^$
IfMatchAction=[!SetVariable Game21Exists "0"]
IfNotMatchAction=[!SetVariable Game21Exists "1"]
[MeasurePlatform21]
Measure=WebParser
Url=[MeasureParent]
StringIndex=83
[MeasureDescription21]
Measure=WebParser
Url=[MeasureParent]
StringIndex=84
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage21]
Measure=WebParser
URL=[&MeasureImage21]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage22]
Measure=WebParser
Url=[MeasureParent]
StringIndex=85
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage22"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage22"][!CommandMeasure "MeasureDownloadImage22" "Update"]
[MeasureTitle22]
Measure=WebParser
Url=[MeasureParent]
StringIndex=86
IfMatch=^$
IfMatchAction=[!SetVariable Game22Exists "0"]
IfNotMatchAction=[!SetVariable Game22Exists "1"]
[MeasurePlatform22]
Measure=WebParser
Url=[MeasureParent]
StringIndex=87
[MeasureDescription22]
Measure=WebParser
Url=[MeasureParent]
StringIndex=88
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage22]
Measure=WebParser
URL=[&MeasureImage22]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage23]
Measure=WebParser
Url=[MeasureParent]
StringIndex=89
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage23"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage23"][!CommandMeasure "MeasureDownloadImage23" "Update"]
[MeasureTitle23]
Measure=WebParser
Url=[MeasureParent]
StringIndex=90
IfMatch=^$
IfMatchAction=[!SetVariable Game23Exists "0"]
IfNotMatchAction=[!SetVariable Game23Exists "1"]
[MeasurePlatform23]
Measure=WebParser
Url=[MeasureParent]
StringIndex=91
[MeasureDescription23]
Measure=WebParser
Url=[MeasureParent]
StringIndex=92
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage23]
Measure=WebParser
URL=[&MeasureImage23]
Download=1
DynamicVariables=1
Disabled=1
[MeasureImage24]
Measure=WebParser
Url=[MeasureParent]
StringIndex=93
IfMatch=^$
IfMatchAction=[!DisableMeasure "MeasureDownloadImage24"]
IfNotMatchAction=[!EnableMeasure "MeasureDownloadImage24"][!CommandMeasure "MeasureDownloadImage24" "Update"]
[MeasureTitle24]
Measure=WebParser
Url=[MeasureParent]
StringIndex=94
IfMatch=^$
IfMatchAction=[!SetVariable Game24Exists "0"]
IfNotMatchAction=[!SetVariable Game24Exists "1"]
[MeasurePlatform24]
Measure=WebParser
Url=[MeasureParent]
StringIndex=95
[MeasureDescription24]
Measure=WebParser
Url=[MeasureParent]
StringIndex=96
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureDownloadImage24]
Measure=WebParser
URL=[&MeasureImage24]
Download=1
DynamicVariables=1
Disabled=1
[MeasureNumOfGames]
Measure=Calc
Formula=( #Game1Exists# + #Game2Exists# + #Game3Exists# + #Game4Exists# + #Game5Exists# + #Game6Exists# + #Game7Exists# + #Game8Exists# + #Game9Exists# + #Game10Exists# + #Game11Exists# + #Game12Exists# + #Game13Exists# + #Game14Exists# + #Game15Exists# + #Game16Exists# + #Game17Exists# + #Game18Exists# + #Game19Exists# + #Game20Exists# + #Game21Exists# + #Game22Exists# + #Game23Exists# + #Game24Exists# )
DynamicVariables=1
[MeterBorderTitle]
Meter=Shape
MeterStyle=BorderStyle
X=4
Y=5
Shape=Rectangle 0,0,435,44,5 | Extend MyModifiers1
[MeterTitle]
Meter=STRING
MeterStyle=StringStyle
MeasureName=MeasureTitle1
X=218r
Y=0r
H=44
FontSize=24
StringAlign=CENTER
Group=Elements
[MeterBorderPlatform]
Meter=Shape
MeterStyle=BorderStyle
X=-218r
Y=5R
Shape=Rectangle 0,0,435,18,5 | Extend MyModifiers1
[MeterPlatform]
Meter=STRING
MeterStyle=StringStyle
MeasureName=MeasurePlatform1
X=2r
Y=0r
H=18
FontSize=10
StringAlign=LEFT
Group=Elements
[MeterBorderDescription]
Meter=Shape
MeterStyle=BorderStyle
X=-2r
Y=5R
Shape=Rectangle 0,0,435,290,5 | Extend MyModifiers1
[MeterDescription]
Meter=STRING
MeterStyle=StringStyle
MeasureName=MeasureDescription1
X=2r
Y=0r
H=290
FontSize=14
StringAlign=LEFT
Group=Elements
[MeterBorderImage]
Meter=Shape
MeterStyle=BorderStyle
X=8R
Y=5
Shape=Rectangle 0,0,485,362,5 | Extend MyModifiers1
[MeterImage]
Meter=Image
X=2r
Y=2r
W=480
H=356
PreserveAspectRatio=1
[MeterScroll]
Meter=Image
SolidColor=255,255,255,1
X=4
Y=10R
W=920
H=135
MouseScrollDownAction=[!SetVariable PositionX "(Clamp((#PositionX#-1),(5-[MeasureNumOfGames]),0))"][!UpdateMeter "MeterImage1"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
MouseScrollUpAction=[!SetVariable PositionX "(Clamp((#PositionX#+1),(5-[MeasureNumOfGames]),0))"][!UpdateMeter "MeterImage1"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]
DynamicVariables=1
[MeterImage1Border]
Meter=Shape
MeterStyle=BorderStyle
X=(5+#PositionX#*(5+[#CURRENTSECTION#:W]))
Y=0r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle1"][!SetOption MeterPlatform MeasureName "MeasurePlatform1"][!SetOption MeterDescription MeasureName "MeasureDescription1"][!SetOption MeterImage MeasureName "MeasureDownloadImage1"][!UpdateMeterGroup "Elements"][!Redraw]
DynamicVariables=1
[MeterImage1]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage1
X=1r
Y=1r
[MeterImage2Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle2"][!SetOption MeterPlatform MeasureName "MeasurePlatform2"][!SetOption MeterDescription MeasureName "MeasureDescription2"][!SetOption MeterImage MeasureName "MeasureDownloadImage2"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage2]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage2
X=1r
Y=1r
[MeterImage3Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle3"][!SetOption MeterPlatform MeasureName "MeasurePlatform3"][!SetOption MeterDescription MeasureName "MeasureDescription3"][!SetOption MeterImage MeasureName "MeasureDownloadImage3"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage3]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage3
X=1r
Y=1r
[MeterImage4Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle4"][!SetOption MeterPlatform MeasureName "MeasurePlatform4"][!SetOption MeterDescription MeasureName "MeasureDescription4"][!SetOption MeterImage MeasureName "MeasureDownloadImage4"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage4]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage4
X=1r
Y=1r
[MeterImage5Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle5"][!SetOption MeterPlatform MeasureName "MeasurePlatform5"][!SetOption MeterDescription MeasureName "MeasureDescription5"][!SetOption MeterImage MeasureName "MeasureDownloadImage5"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage5]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage5
X=1r
Y=1r
[MeterImage6Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle6"][!SetOption MeterPlatform MeasureName "MeasurePlatform6"][!SetOption MeterDescription MeasureName "MeasureDescription6"][!SetOption MeterImage MeasureName "MeasureDownloadImage6"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage6]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage6
X=1r
Y=1r
[MeterImage7Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle7"][!SetOption MeterPlatform MeasureName "MeasurePlatform7"][!SetOption MeterDescription MeasureName "MeasureDescription7"][!SetOption MeterImage MeasureName "MeasureDownloadImage7"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage7]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage7
X=1r
Y=1r
[MeterImage8Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle8"][!SetOption MeterPlatform MeasureName "MeasurePlatform8"][!SetOption MeterDescription MeasureName "MeasureDescription8"][!SetOption MeterImage MeasureName "MeasureDownloadImage8"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage8]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage8
X=1r
Y=1r
[MeterImage9Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle9"][!SetOption MeterPlatform MeasureName "MeasurePlatform9"][!SetOption MeterDescription MeasureName "MeasureDescription9"][!SetOption MeterImage MeasureName "MeasureDownloadImage9"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage9]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage9
X=1r
Y=1r
[MeterImage10Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle10"][!SetOption MeterPlatform MeasureName "MeasurePlatform10"][!SetOption MeterDescription MeasureName "MeasureDescription10"][!SetOption MeterImage MeasureName "MeasureDownloadImage10"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage10]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage10
X=1r
Y=1r
[MeterImage11Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle11"][!SetOption MeterPlatform MeasureName "MeasurePlatform11"][!SetOption MeterDescription MeasureName "MeasureDescription11"][!SetOption MeterImage MeasureName "MeasureDownloadImage11"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage11]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage11
X=1r
Y=1r
[MeterImage12Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle12"][!SetOption MeterPlatform MeasureName "MeasurePlatform12"][!SetOption MeterDescription MeasureName "MeasureDescription12"][!SetOption MeterImage MeasureName "MeasureDownloadImage12"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage12]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage12
X=1r
Y=1r
[MeterImage13Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle13"][!SetOption MeterPlatform MeasureName "MeasurePlatform13"][!SetOption MeterDescription MeasureName "MeasureDescription13"][!SetOption MeterImage MeasureName "MeasureDownloadImage13"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage13]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage13
X=1r
Y=1r
[MeterImage14Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle14"][!SetOption MeterPlatform MeasureName "MeasurePlatform14"][!SetOption MeterDescription MeasureName "MeasureDescription14"][!SetOption MeterImage MeasureName "MeasureDownloadImage14"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage14]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage14
X=1r
Y=1r
[MeterImage15Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle15"][!SetOption MeterPlatform MeasureName "MeasurePlatform15"][!SetOption MeterDescription MeasureName "MeasureDescription15"][!SetOption MeterImage MeasureName "MeasureDownloadImage15"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage15]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage15
X=1r
Y=1r
[MeterImage16Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle16"][!SetOption MeterPlatform MeasureName "MeasurePlatform16"][!SetOption MeterDescription MeasureName "MeasureDescription16"][!SetOption MeterImage MeasureName "MeasureDownloadImage16"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage16]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage16
X=1r
Y=1r
[MeterImage17Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle17"][!SetOption MeterPlatform MeasureName "MeasurePlatform17"][!SetOption MeterDescription MeasureName "MeasureDescription17"][!SetOption MeterImage MeasureName "MeasureDownloadImage17"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage17]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage17
X=1r
Y=1r
[MeterImage18Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle18"][!SetOption MeterPlatform MeasureName "MeasurePlatform18"][!SetOption MeterDescription MeasureName "MeasureDescription18"][!SetOption MeterImage MeasureName "MeasureDownloadImage18"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage18]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage18
X=1r
Y=1r
[MeterImage19Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle19"][!SetOption MeterPlatform MeasureName "MeasurePlatform19"][!SetOption MeterDescription MeasureName "MeasureDescription19"][!SetOption MeterImage MeasureName "MeasureDownloadImage19"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage19]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage19
X=1r
Y=1r
[MeterImage20Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle20"][!SetOption MeterPlatform MeasureName "MeasurePlatform20"][!SetOption MeterDescription MeasureName "MeasureDescription20"][!SetOption MeterImage MeasureName "MeasureDownloadImage20"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage20]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage20
X=1r
Y=1r
[MeterImage21Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle21"][!SetOption MeterPlatform MeasureName "MeasurePlatform21"][!SetOption MeterDescription MeasureName "MeasureDescription21"][!SetOption MeterImage MeasureName "MeasureDownloadImage21"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage21]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage21
X=1r
Y=1r
[MeterImage22Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle22"][!SetOption MeterPlatform MeasureName "MeasurePlatform22"][!SetOption MeterDescription MeasureName "MeasureDescription22"][!SetOption MeterImage MeasureName "MeasureDownloadImage22"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage22]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage22
X=1r
Y=1r
[MeterImage23Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle23"][!SetOption MeterPlatform MeasureName "MeasurePlatform23"][!SetOption MeterDescription MeasureName "MeasureDescription23"][!SetOption MeterImage MeasureName "MeasureDownloadImage23"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage23]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage23
X=1r
Y=1r
[MeterImage24Border]
Meter=Shape
MeterStyle=BorderStyle
X=5R
Y=-1r
Shape=Rectangle 0,0,180,135,5 | Extend MyModifiers1
MouseOverAction=[!SetOption MeterTitle MeasureName "MeasureTitle24"][!SetOption MeterPlatform MeasureName "MeasurePlatform24"][!SetOption MeterDescription MeasureName "MeasureDescription24"][!SetOption MeterImage MeasureName "MeasureDownloadImage24"][!UpdateMeter "MeterImage"][!Redraw]
[MeterImage24]
Meter=Image
MeterStyle=ImageStyle
MeasureName=MeasureDownloadImage24
X=1r
Y=1r
-
- Posts: 19
- Joined: June 7th, 2017, 4:29 am
Re: Help with webparser
I changed the colouring to 0,6,25| StrokeWidth 2 | Stroke Color 25,122,178 . I was thinking, going back to this image, having the game info and the game banner/poster in one long box but the poster inside the one long box like the image? Also is there a way of adding the game info in the other image from steam? Recent reviews, release date and so on?
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Help with webparser
Just note that the more information you get about games, the less games can be parsed. The total number of information which can be acquired by a WebParser measure is 100. Now we get four information per game (title, image, platform and description), that's why we could get 24 games (4 information x 24 games = 96 information < 100). If we add the review and the date, this means six information per game, so just up to 16 games would be parsed (6 x 16 = 96).Dhp84 wrote: ↑February 5th, 2019, 9:25 am I changed the colouring to 0,6,25| StrokeWidth 2 | Stroke Color 25,122,178 . I was thinking, going back to this image, having the game info and the game banner/poster in one long box but the poster inside the one long box like the image? Also is there a way of adding the game info in the other image from steam? Recent reviews, release date and so on?
Decide what is more important for you: getting less information about more games or getting more information about less games.
-
- Posts: 19
- Joined: June 7th, 2017, 4:29 am
Re: Help with webparser
O ok! I didn't no that, I'll have a think on what's more important.
-
- Rainmeter Sage
- Posts: 5384
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Help with webparser
One way around this limit is to use StringIndex2.
You would capture all of each game's info in the first webparser measures, then parse that capture using StringIndex2 to capture each portions of that game info you want to display.
It complicates the parsing, but avoids the stringindex capture limit.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Help with webparser
Ok, think to and let me know. But probably eclectic-tech is right (as usually) and the described solution would work. Let's see what do you think.
-
- Posts: 19
- Joined: June 7th, 2017, 4:29 am
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Help with webparser
Ok, will try it tomorrow. Unfortunately here it's almost midnight, so now I don't work anymore, but tomorrow I'll give it a try.