It is currently July 18th, 2019, 12:02 pm

Unexpected/Missing results using lookahead

Help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 8369
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

balala » December 19th, 2018, 6:30 pm

Tical84 wrote:
December 19th, 2018, 5:41 pm
Last night I changed the location of some things so I'll incorporate what you did, then send back a revised skin later tonight (tomorrow your time)
Ok, let's see it...
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Tical84 » December 20th, 2018, 3:15 am

I just moved the teams and scores to the left of the period/start time, Condensed "Schedule time" to "Start Time" just to save a little horizontal space (I may actually remove that completely and just have the time, I haven't decided yet) and renamed the variable since "AWAY" didn't make sense anymore.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,100

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
Game=(?(?=.*"gamePk").*"gameDate" : "(.*)",.*"abstractGameState" : "(.*)",.*"teams".*"score" : (\d*),.*"id" : (\d*),.*"score" : (\d*),.*"id" : (\d*),.*"currentPeriod" : (\d*),)

[StateStyle]
X=90
Y=r
W=100
H=56
FontSize=14
FontColor=255,255,255,255
StringAlign=LeftCenter
AntiAlias=1
Hidden=1

[MeasureNHL] 
Measure=WebParser 
UpdateRate=300
URL=https://statsapi.web.nhl.com/api/v1/schedule?expand=schedule.linescore
RegExp=(?siU)"totalItems" : (\d*),#Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game#
FinishAction=[!EnableMeasure "MeasureItemNum"][!UpdateMeasure "MeasureItemNum"]

[MeasureItemNum]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=1
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!DisableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!EnableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition11=(#CURRENTSECTION#=10)
IfTrueAction11=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition12=(#CURRENTSECTION#=11)
IfTrueAction12=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition13=(#CURRENTSECTION#=12)
IfTrueAction13=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"]
Disabled=1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 1;;;;;;;;;;;;;;;;;;

[MeasureGame1DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=2
Disabled=1
Group=Item1
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame1State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=3
Disabled=1
Group=Item1
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame1State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame1State Text "Period: %2"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame1State Text "Game Ended"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
DynamicVariables=1

[MeasureGame1AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=4
Disabled=1
Group=Item1

[MeterGame1AwayScore]
Meter=String
MeasureName=MeasureGame1AwayScore
x=70
y=10
w=30
h=30
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=6
Disabled=1
Group=Item1

[MeterGame1HomeScore]
Meter=String
MeasureName=MeasureGame1HomeScore
x=r
y=30r
w=30
h=30
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=5
Disabled=1
Group=Item1

[MeterGame1AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1AwayTeam
x=10
y=10
w=30
h=30

[MeasureGame1HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=7
Disabled=1
Group=Item1

[MeterGame1HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame1Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=8
Disabled=1
Group=Item1

[MeterGame1State]
Meter=String
MeasureName=MeasureGame1DateTime
MeasureName2=MeasureGame1Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 2;;;;;;;;;;;;;;;;;;

[MeasureGame2DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=9
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame2State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=10
Disabled=1
Group=Item2
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame2State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame2State Text "Period: %2"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame2State Text "Game Ended"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
DynamicVariables=1

[MeasureGame2AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=11
Disabled=1
Group=Item2

[MeterGame2AwayScore]
Meter=String
MeasureName=MeasureGame2AwayScore
x=70
y=80
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=13
Disabled=1
Group=Item2

[MeterGame2HomeScore]
Meter=String
MeasureName=MeasureGame2HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=12
Disabled=1
Group=Item2

[MeterGame2AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2AwayTeam
x=10
y=80
w=30
h=30

[MeasureGame2HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=14
Disabled=1
Group=Item2

[MeterGame2HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame2Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=15
Disabled=1
Group=Item2

[MeterGame2State]
Meter=String
MeasureName=MeasureGame2DateTime
MeasureName2=MeasureGame2Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 3;;;;;;;;;;;;;;;;;;

[MeasureGame3DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=16
Disabled=1
Group=Item3
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame3State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=17
Disabled=1
Group=Item3
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame3State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame3State Text "Period: %2"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame3State Text "Game Ended"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
DynamicVariables=1

[MeasureGame3AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=18
Disabled=1
Group=Item3

[MeterGame3AwayScore]
Meter=String
MeasureName=MeasureGame3AwayScore
x=70
y=150
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=20
Disabled=1
Group=Item3

[MeterGame3HomeScore]
Meter=String
MeasureName=MeasureGame3HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=19
Disabled=1
Group=Item3

[MeterGame3AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3AwayTeam
x=10
y=150
w=30
h=30

[MeasureGame3HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=21
Disabled=1
Group=Item3

[MeterGame3HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame3Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=22
Disabled=1
Group=Item3

[MeterGame3State]
Meter=String
MeasureName=MeasureGame3DateTime
MeasureName2=MeasureGame3Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 4;;;;;;;;;;;;;;;;;;

[MeasureGame4DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=23
Disabled=1
Group=Item4
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame4State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=24
Disabled=1
Group=Item4
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame4State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame4State Text "Period: %2"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame4State Text "Game Ended"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
DynamicVariables=1

[MeasureGame4AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=25
Disabled=1
Group=Item4

[MeterGame4AwayScore]
Meter=String
MeasureName=MeasureGame4AwayScore
x=70
y=220
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=27
Disabled=1
Group=Item4

[MeterGame4HomeScore]
Meter=String
MeasureName=MeasureGame4HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=26
Disabled=1
Group=Item4

[MeterGame4AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4AwayTeam
x=10
y=220
w=30
h=30

[MeasureGame4HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=28
Disabled=1
Group=Item4

[MeasureGame4Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=29
Disabled=1
Group=Item4

[MeterGame4HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame4State]
Meter=String
MeasureName=MeasureGame4DateTime
MeasureName2=MeasureGame4Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 5;;;;;;;;;;;;;;;;;;

[MeasureGame5DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=30
Disabled=1
Group=Item5
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame5State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=31
Disabled=1
Group=Item5
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame5State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame5State Text "Period: %2"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame5State Text "Game Ended"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
DynamicVariables=1

[MeasureGame5AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=32
Disabled=1
Group=Item5

[MeterGame5AwayScore]
Meter=String
MeasureName=MeasureGame5AwayScore
x=70
y=290
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=34
Disabled=1
Group=Item5

[MeterGame5HomeScore]
Meter=String
MeasureName=MeasureGame5HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=33
Disabled=1
Group=Item5

[MeterGame5AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5AwayTeam
x=10
y=290
w=30
h=30

[MeasureGame5HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=35
Disabled=1
Group=Item5

[MeasureGame5Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=36
Disabled=1
Group=Item5

[MeterGame5HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame5State]
Meter=String
MeasureName=MeasureGame5DateTime
MeasureName2=MeasureGame5Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 6;;;;;;;;;;;;;;;;;;

[MeasureGame6DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=37
Disabled=1
Group=Item6
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame6State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=38
Disabled=1
Group=Item6
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame6State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame6State Text "Period: %2"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame6State Text "Game Ended"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
DynamicVariables=1

[MeasureGame6AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=39
Disabled=1
Group=Item6

[MeterGame6AwayScore]
Meter=String
MeasureName=MeasureGame6AwayScore
x=70
y=360
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=41
Disabled=1
Group=Item6

[MeterGame6HomeScore]
Meter=String
MeasureName=MeasureGame6HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=40
Disabled=1
Group=Item6

[MeterGame6AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6AwayTeam
x=10
y=360
w=30
h=30

[MeasureGame6HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=42
Disabled=1
Group=Item6

[MeasureGame6Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=43
Disabled=1
Group=Item6

[MeterGame6HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame6State]
Meter=String
MeasureName=MeasureGame6DateTime
MeasureName2=MeasureGame6Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 7;;;;;;;;;;;;;;;;;;

[MeasureGame7DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=44
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame7State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=45
Disabled=1
Group=Item7
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame7State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame7State Text "Period: %2"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame7State Text "Game Ended"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
DynamicVariables=1

[MeasureGame7AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=46
Disabled=1
Group=Item7

[MeterGame7AwayScore]
Meter=String
MeasureName=MeasureGame7AwayScore
x=70
y=430
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=48
Disabled=1
Group=Item7

[MeterGame7HomeScore]
Meter=String
MeasureName=MeasureGame7HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=47
Disabled=1
Group=Item7

[MeterGame7AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7AwayTeam
x=10
y=430
w=30
h=30

[MeasureGame7HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=49
Disabled=1
Group=Item7

[MeasureGame7Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=50
Disabled=1
Group=Item7

[MeterGame7HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame7State]
Meter=String
MeasureName=MeasureGame7DateTime
MeasureName2=MeasureGame7Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 8;;;;;;;;;;;;;;;;;;

[MeasureGame8DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=51
Disabled=1
Group=Item8
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame8State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=52
Disabled=1
Group=Item8
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame8State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame8State Text "Period: %2"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame8State Text "Game Ended"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
DynamicVariables=1

[MeasureGame8AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=53
Disabled=1
Group=Item8

[MeterGame8AwayScore]
Meter=String
MeasureName=MeasureGame8AwayScore
x=70
y=500
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=55
Disabled=1
Group=Item8

[MeterGame8HomeScore]
Meter=String
MeasureName=MeasureGame8HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=54
Disabled=1
Group=Item8

[MeterGame8AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8AwayTeam
x=10
y=500
w=30
h=30

[MeasureGame8HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=56
Disabled=1
Group=Item8

[MeasureGame8Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=57
Disabled=1
Group=Item8

[MeterGame8HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame8State]
Meter=String
MeasureName=MeasureGame8DateTime
MeasureName2=MeasureGame8Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 9;;;;;;;;;;;;;;;;;;

[MeasureGame9DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=58
Disabled=1
Group=Item9
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame9State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=59
Disabled=1
Group=Item9
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame9State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame9State Text "Period: %2"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame9State Text "Game Ended"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
DynamicVariables=1

[MeasureGame9AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=60
Disabled=1
Group=Item9

[MeterGame9AwayScore]
Meter=String
MeasureName=MeasureGame9AwayScore
x=70
y=570
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=62
Disabled=1
Group=Item9

[MeterGame9HomeScore]
Meter=String
MeasureName=MeasureGame9HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=61
Disabled=1
Group=Item9

[MeterGame9AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9AwayTeam
x=10
y=570
w=30
h=30

[MeasureGame9HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=63
Disabled=1
Group=Item9

[MeasureGame9Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=64
Disabled=1
Group=Item9

[MeterGame9HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame9State]
Meter=String
MeasureName=MeasureGame9DateTime
MeasureName2=MeasureGame9Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 10;;;;;;;;;;;;;;;;;;

[MeasureGame10DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=65
Disabled=1
Group=Item10
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame10State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=66
Disabled=1
Group=Item10
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame10State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame10State Text "Period: %2"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame10State Text "Game Ended"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
DynamicVariables=1

[MeasureGame10AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=67
Disabled=1
Group=Item10

[MeterGame10AwayScore]
Meter=String
MeasureName=MeasureGame10AwayScore
x=70
y=640
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=69
Disabled=1
Group=Item10

[MeterGame10HomeScore]
Meter=String
MeasureName=MeasureGame10HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=68
Disabled=1
Group=Item10

[MeterGame10AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10AwayTeam
x=10
y=640
w=30
h=30

[MeasureGame10HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=70
Disabled=1
Group=Item10

[MeasureGame10Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=71
Disabled=1
Group=Item10

[MeterGame10HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame10State]
Meter=String
MeasureName=MeasureGame10DateTime
MeasureName2=MeasureGame10Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 11;;;;;;;;;;;;;;;;;;

[MeasureGame11DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=72
Disabled=1
Group=Item11
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame11State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=73
Disabled=1
Group=Item11
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame11State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame11State Text "Period: %2"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame11State Text "Game Ended"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
DynamicVariables=1

[MeasureGame11AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=74
Disabled=1
Group=Item11

[MeterGame11AwayScore]
Meter=String
MeasureName=MeasureGame11AwayScore
x=70
y=710
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=76
Disabled=1
Group=Item11

[MeterGame11HomeScore]
Meter=String
MeasureName=MeasureGame11HomeScore
x=r
y=30r
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=75
Disabled=1
Group=Item11

[MeterGame11AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11AwayTeam
x=10
y=710
w=30
h=30

[MeasureGame11HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=77
Disabled=1
Group=Item11

[MeasureGame11Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=78
Disabled=1
Group=Item11

[MeterGame11HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame11State]
Meter=String
MeasureName=MeasureGame11DateTime
MeasureName2=MeasureGame11Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 12;;;;;;;;;;;;;;;;;;

[MeasureGame12DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=79
Disabled=1
Group=Item12
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame12State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=80
Disabled=1
Group=Item12
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame12State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame12State Text "Period: %2"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame12State Text "Game Ended"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
DynamicVariables=1

[MeasureGame12AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=81
Disabled=1
Group=Item12

[MeterGame12AwayScore]
Meter=String
MeasureName=MeasureGame12AwayScore
x=70
y=780
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=83
Disabled=1
Group=Item12

[MeterGame12HomeScore]
Meter=String
MeasureName=MeasureGame12HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=82
Disabled=1
Group=Item12

[MeterGame12AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12AwayTeam
x=10
y=780
w=30
h=30


[MeasureGame12HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=84
Disabled=1
Group=Item12

[MeasureGame12Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=85
Disabled=1
Group=Item12

[MeterGame12HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame12State]
Meter=String
MeasureName=MeasureGame12DateTime
MeasureName2=MeasureGame12Period
MeterStyle=StateStyle
User avatar
balala
Rainmeter Sage
Posts: 8369
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

balala » December 20th, 2018, 4:21 pm

Tical84 wrote:
December 20th, 2018, 3:15 am
I just moved the teams and scores to the left of the period/start time, Condensed "Schedule time" to "Start Time" just to save a little horizontal space (I may actually remove that completely and just have the time, I haven't decided yet) and renamed the variable since "AWAY" didn't make sense anymore.
I'm glad you got the idea. :thumbup: What name are you using for a variable doesn't matter too much, if Game is better for you than Away, there is no problem with this at all.
There is something more to be done with this project? One which I'd consider is to reduce the height of the skin, according to the number of shown games. Because now the skin has a fixed height, which, when there are let's say only two games, doesn1t make too much sense.
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Tical84 » December 20th, 2018, 5:54 pm

Automatic skin height would be good and other than that, time remaining would still be nice to have.

Oh, and is there a way to automatically change the time to local time? I'm guessing some sort of calc measure will be needed but the time is currently a string so I'm not sure about how that'll work.
User avatar
balala
Rainmeter Sage
Posts: 8369
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

balala » December 20th, 2018, 6:24 pm

Tical84 wrote:
December 20th, 2018, 5:54 pm
Automatic skin height would be good and other than that, time remaining would still be nice to have.
Will take a look to see how to do this.
Tical84 wrote:
December 20th, 2018, 5:54 pm
Oh, and is there a way to automatically change the time to local time? I'm guessing some sort of calc measure will be needed but the time is currently a string so I'm not sure about how that'll work.
Probably is possible, using a .lua script. Or even without a such script file. I'll try to find a way to do this as well.
User avatar
balala
Rainmeter Sage
Posts: 8369
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

balala » December 21st, 2018, 7:09 pm

Tical84 wrote:
December 20th, 2018, 5:54 pm
Oh, and is there a way to automatically change the time to local time? I'm guessing some sort of calc measure will be needed but the time is currently a string so I'm not sure about how that'll work.
First solution (not sure is working well all the times). For now only the used time zone is changed, the other things you asked for, will come soon.
Assuming all games are in the same time zone (are they?), you have to add / edit two variables into the [Variables] section of the code below:
  • GameZone is the time zone of place where the games are going on (I set it to -5, assuming they are somewhere in the EST time zone).
  • TimeZone is your time zone (set it to 0, because I don't know what is your time zone).
Please edit both variables, check the code below and let me know how does it work.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,100

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
GameZone=-5
TimeZone=0
Game=(?(?=.*"gamePk").*"gameDate" : "(.*)",.*"abstractGameState" : "(.*)",.*"teams".*"score" : (\d*),.*"id" : (\d*),.*"score" : (\d*),.*"id" : (\d*),.*"currentPeriod" : (\d*),)

[StateStyle]
X=90
Y=r
W=100
H=56
FontSize=14
FontColor=255,255,255,255
StringAlign=LeftCenter
AntiAlias=1
Hidden=1

[MeasureNHL] 
Measure=WebParser 
UpdateRate=300
;URL=file://#@#Results.inc
URL=https://statsapi.web.nhl.com/api/v1/schedule?expand=schedule.linescore
RegExp=(?siU)"totalItems" : (\d*),#Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game#
FinishAction=[!EnableMeasure "MeasureItemNum"][!UpdateMeasure "MeasureItemNum"]

[MeasureItemNum]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=1
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!DisableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!EnableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition11=(#CURRENTSECTION#=10)
IfTrueAction11=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition12=(#CURRENTSECTION#=11)
IfTrueAction12=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"]
IfCondition13=(#CURRENTSECTION#=12)
IfTrueAction13=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"]
Disabled=1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 1;;;;;;;;;;;;;;;;;;

[MeasureGame1DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=2
Disabled=1
Group=Item1
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame1Hour]
Measure=String
String=[MeasureGame1DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame1Min]
Measure=String
String=[MeasureGame1DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame1Sec]
Measure=String
String=[MeasureGame1DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame1HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame1Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame1Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame1Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame1MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame1Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame1LocalTime]
Measure=String
String=[MeasureGame1HourLocal]:[MeasureGame1MinLocal]:[MeasureGame1Sec]
DynamicVariables=1

[MeasureGame1State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=3
Disabled=1
Group=Item1
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame1State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame1State Text "Period: %2"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame1State Text "Game Ended"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
DynamicVariables=1

[MeasureGame1AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=4
Disabled=1
Group=Item1

[MeterGame1AwayScore]
Meter=String
MeasureName=MeasureGame1AwayScore
x=70
y=10
w=30
h=30
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=6
Disabled=1
Group=Item1

[MeterGame1HomeScore]
Meter=String
MeasureName=MeasureGame1HomeScore
x=r
y=30r
w=30
h=30
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=5
Disabled=1
Group=Item1

[MeterGame1AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1AwayTeam
x=10
y=10
w=30
h=30

[MeasureGame1HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=7
Disabled=1
Group=Item1

[MeterGame1HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame1Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=8
Disabled=1
Group=Item1

[MeterGame1State]
Meter=String
MeasureName=MeasureGame1LocalTime
MeasureName2=MeasureGame1Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 2;;;;;;;;;;;;;;;;;;

[MeasureGame2DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=9
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame2Hour]
Measure=String
String=[MeasureGame2DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame2Min]
Measure=String
String=[MeasureGame2DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame2Sec]
Measure=String
String=[MeasureGame2DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame2HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame2Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame2Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame2Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame2MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame2Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame2LocalTime]
Measure=String
String=[MeasureGame2HourLocal]:[MeasureGame2MinLocal]:[MeasureGame2Sec]
DynamicVariables=1

[MeasureGame2State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=10
Disabled=1
Group=Item2
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame2State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame2State Text "Period: %2"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame2State Text "Game Ended"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
DynamicVariables=1

[MeasureGame2AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=11
Disabled=1
Group=Item2

[MeterGame2AwayScore]
Meter=String
MeasureName=MeasureGame2AwayScore
x=70
y=80
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=13
Disabled=1
Group=Item2

[MeterGame2HomeScore]
Meter=String
MeasureName=MeasureGame2HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=12
Disabled=1
Group=Item2

[MeterGame2AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2AwayTeam
x=10
y=80
w=30
h=30

[MeasureGame2HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=14
Disabled=1
Group=Item2

[MeterGame2HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame2Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=15
Disabled=1
Group=Item2

[MeterGame2State]
Meter=String
MeasureName=MeasureGame2LocalTime
MeasureName2=MeasureGame2Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 3;;;;;;;;;;;;;;;;;;

[MeasureGame3DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=16
Disabled=1
Group=Item3
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame3Hour]
Measure=String
String=[MeasureGame3DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame3Min]
Measure=String
String=[MeasureGame3DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame3Sec]
Measure=String
String=[MeasureGame3DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame3HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame3Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame3Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame3Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame3MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame3Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame3LocalTime]
Measure=String
String=[MeasureGame3HourLocal]:[MeasureGame3MinLocal]:[MeasureGame3Sec]
DynamicVariables=1

[MeasureGame3State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=17
Disabled=1
Group=Item3
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame3State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame3State Text "Period: %2"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame3State Text "Game Ended"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
DynamicVariables=1

[MeasureGame3AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=18
Disabled=1
Group=Item3

[MeterGame3AwayScore]
Meter=String
MeasureName=MeasureGame3AwayScore
x=70
y=150
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=20
Disabled=1
Group=Item3

[MeterGame3HomeScore]
Meter=String
MeasureName=MeasureGame3HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=19
Disabled=1
Group=Item3

[MeterGame3AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3AwayTeam
x=10
y=150
w=30
h=30

[MeasureGame3HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=21
Disabled=1
Group=Item3

[MeterGame3HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame3Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=22
Disabled=1
Group=Item3

[MeterGame3State]
Meter=String
MeasureName=MeasureGame3LocalTime
MeasureName2=MeasureGame3Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 4;;;;;;;;;;;;;;;;;;

[MeasureGame4DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=23
Disabled=1
Group=Item4
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame4Hour]
Measure=String
String=[MeasureGame4DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame4Min]
Measure=String
String=[MeasureGame4DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame4Sec]
Measure=String
String=[MeasureGame4DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame4HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame4Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame4Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame4Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame4MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame4Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame4LocalTime]
Measure=String
String=[MeasureGame4HourLocal]:[MeasureGame4MinLocal]:[MeasureGame4Sec]
DynamicVariables=1

[MeasureGame4State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=24
Disabled=1
Group=Item4
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame4State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame4State Text "Period: %2"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame4State Text "Game Ended"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
DynamicVariables=1

[MeasureGame4AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=25
Disabled=1
Group=Item4

[MeterGame4AwayScore]
Meter=String
MeasureName=MeasureGame4AwayScore
x=70
y=220
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=27
Disabled=1
Group=Item4

[MeterGame4HomeScore]
Meter=String
MeasureName=MeasureGame4HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=26
Disabled=1
Group=Item4

[MeterGame4AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4AwayTeam
x=10
y=220
w=30
h=30

[MeasureGame4HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=28
Disabled=1
Group=Item4

[MeasureGame4Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=29
Disabled=1
Group=Item4

[MeterGame4HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame4State]
Meter=String
MeasureName=MeasureGame4LocalTime
MeasureName2=MeasureGame4Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 5;;;;;;;;;;;;;;;;;;

[MeasureGame5DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=30
Disabled=1
Group=Item5
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame5Hour]
Measure=String
String=[MeasureGame5DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame5Min]
Measure=String
String=[MeasureGame5DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame5Sec]
Measure=String
String=[MeasureGame5DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame5HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame5Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame5Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame5Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame5MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame5Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame5LocalTime]
Measure=String
String=[MeasureGame5HourLocal]:[MeasureGame5MinLocal]:[MeasureGame5Sec]
DynamicVariables=1

[MeasureGame5State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=31
Disabled=1
Group=Item5
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame5State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame5State Text "Period: %2"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame5State Text "Game Ended"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
DynamicVariables=1

[MeasureGame5AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=32
Disabled=1
Group=Item5

[MeterGame5AwayScore]
Meter=String
MeasureName=MeasureGame5AwayScore
x=70
y=290
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=34
Disabled=1
Group=Item5

[MeterGame5HomeScore]
Meter=String
MeasureName=MeasureGame5HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=33
Disabled=1
Group=Item5

[MeterGame5AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5AwayTeam
x=10
y=290
w=30
h=30

[MeasureGame5HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=35
Disabled=1
Group=Item5

[MeasureGame5Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=36
Disabled=1
Group=Item5

[MeterGame5HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame5State]
Meter=String
MeasureName=MeasureGame5LocalTime
MeasureName2=MeasureGame5Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 6;;;;;;;;;;;;;;;;;;

[MeasureGame6DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=37
Disabled=1
Group=Item6
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame6Hour]
Measure=String
String=[MeasureGame6DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame6Min]
Measure=String
String=[MeasureGame6DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame6Sec]
Measure=String
String=[MeasureGame6DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame6HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame6Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame6Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame6Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame6MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame6Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame6LocalTime]
Measure=String
String=[MeasureGame6HourLocal]:[MeasureGame6MinLocal]:[MeasureGame6Sec]
DynamicVariables=1

[MeasureGame6State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=38
Disabled=1
Group=Item6
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame6State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame6State Text "Period: %2"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame6State Text "Game Ended"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
DynamicVariables=1

[MeasureGame6AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=39
Disabled=1
Group=Item6

[MeterGame6AwayScore]
Meter=String
MeasureName=MeasureGame6AwayScore
x=70
y=360
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=41
Disabled=1
Group=Item6

[MeterGame6HomeScore]
Meter=String
MeasureName=MeasureGame6HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=40
Disabled=1
Group=Item6

[MeterGame6AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6AwayTeam
x=10
y=360
w=30
h=30

[MeasureGame6HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=42
Disabled=1
Group=Item6

[MeasureGame6Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=43
Disabled=1
Group=Item6

[MeterGame6HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame6State]
Meter=String
MeasureName=MeasureGame6LocalTime
MeasureName2=MeasureGame6Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 7;;;;;;;;;;;;;;;;;;

[MeasureGame7DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=44
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame7Hour]
Measure=String
String=[MeasureGame7DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame7Min]
Measure=String
String=[MeasureGame7DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame7Sec]
Measure=String
String=[MeasureGame7DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame7HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame7Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame7Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame7Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame7MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame7Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame7LocalTime]
Measure=String
String=[MeasureGame7HourLocal]:[MeasureGame7MinLocal]:[MeasureGame7Sec]
DynamicVariables=1

[MeasureGame7State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=45
Disabled=1
Group=Item7
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame7State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame7State Text "Period: %2"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame7State Text "Game Ended"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
DynamicVariables=1

[MeasureGame7AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=46
Disabled=1
Group=Item7

[MeterGame7AwayScore]
Meter=String
MeasureName=MeasureGame7AwayScore
x=70
y=430
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=48
Disabled=1
Group=Item7

[MeterGame7HomeScore]
Meter=String
MeasureName=MeasureGame7HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=47
Disabled=1
Group=Item7

[MeterGame7AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7AwayTeam
x=10
y=430
w=30
h=30

[MeasureGame7HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=49
Disabled=1
Group=Item7

[MeasureGame7Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=50
Disabled=1
Group=Item7

[MeterGame7HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame7State]
Meter=String
MeasureName=MeasureGame7LocalTime
MeasureName2=MeasureGame7Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 8;;;;;;;;;;;;;;;;;;

[MeasureGame8DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=51
Disabled=1
Group=Item8
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame8Hour]
Measure=String
String=[MeasureGame8DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame8Min]
Measure=String
String=[MeasureGame8DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame8Sec]
Measure=String
String=[MeasureGame8DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame8HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame8Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame8Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame8Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame8MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame8Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame8LocalTime]
Measure=String
String=[MeasureGame8HourLocal]:[MeasureGame8MinLocal]:[MeasureGame8Sec]
DynamicVariables=1

[MeasureGame8State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=52
Disabled=1
Group=Item8
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame8State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame8State Text "Period: %2"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame8State Text "Game Ended"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
DynamicVariables=1

[MeasureGame8AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=53
Disabled=1
Group=Item8

[MeterGame8AwayScore]
Meter=String
MeasureName=MeasureGame8AwayScore
x=70
y=500
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=55
Disabled=1
Group=Item8

[MeterGame8HomeScore]
Meter=String
MeasureName=MeasureGame8HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=54
Disabled=1
Group=Item8

[MeterGame8AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8AwayTeam
x=10
y=500
w=30
h=30

[MeasureGame8HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=56
Disabled=1
Group=Item8

[MeasureGame8Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=57
Disabled=1
Group=Item8

[MeterGame8HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame8State]
Meter=String
MeasureName=MeasureGame8LocalTime
MeasureName2=MeasureGame8Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 9;;;;;;;;;;;;;;;;;;

[MeasureGame9DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=58
Disabled=1
Group=Item9
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame9Hour]
Measure=String
String=[MeasureGame9DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame9Min]
Measure=String
String=[MeasureGame9DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame9Sec]
Measure=String
String=[MeasureGame9DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame9HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame9Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame9Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame9Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame9MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame9Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame9LocalTime]
Measure=String
String=[MeasureGame9HourLocal]:[MeasureGame9MinLocal]:[MeasureGame9Sec]
DynamicVariables=1

[MeasureGame9State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=59
Disabled=1
Group=Item9
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame9State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame9State Text "Period: %2"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame9State Text "Game Ended"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
DynamicVariables=1

[MeasureGame9AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=60
Disabled=1
Group=Item9

[MeterGame9AwayScore]
Meter=String
MeasureName=MeasureGame9AwayScore
x=70
y=570
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=62
Disabled=1
Group=Item9

[MeterGame9HomeScore]
Meter=String
MeasureName=MeasureGame9HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=61
Disabled=1
Group=Item9

[MeterGame9AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9AwayTeam
x=10
y=570
w=30
h=30

[MeasureGame9HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=63
Disabled=1
Group=Item9

[MeasureGame9Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=64
Disabled=1
Group=Item9

[MeterGame9HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame9State]
Meter=String
MeasureName=MeasureGame9LocalTime
MeasureName2=MeasureGame9Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 10;;;;;;;;;;;;;;;;;;

[MeasureGame10DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=65
Disabled=1
Group=Item10
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame10Hour]
Measure=String
String=[MeasureGame10DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame10Min]
Measure=String
String=[MeasureGame10DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame10Sec]
Measure=String
String=[MeasureGame10DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame10HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame10Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame10Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame10Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame10MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame10Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame10LocalTime]
Measure=String
String=[MeasureGame10HourLocal]:[MeasureGame10MinLocal]:[MeasureGame10Sec]
DynamicVariables=1

[MeasureGame10State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=66
Disabled=1
Group=Item10
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame10State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame10State Text "Period: %2"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame10State Text "Game Ended"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
DynamicVariables=1

[MeasureGame10AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=67
Disabled=1
Group=Item10

[MeterGame10AwayScore]
Meter=String
MeasureName=MeasureGame10AwayScore
x=70
y=640
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=69
Disabled=1
Group=Item10

[MeterGame10HomeScore]
Meter=String
MeasureName=MeasureGame10HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=68
Disabled=1
Group=Item10

[MeterGame10AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10AwayTeam
x=10
y=640
w=30
h=30

[MeasureGame10HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=70
Disabled=1
Group=Item10

[MeasureGame10Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=71
Disabled=1
Group=Item10

[MeterGame10HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame10State]
Meter=String
MeasureName=MeasureGame10LocalTime
MeasureName2=MeasureGame10Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 11;;;;;;;;;;;;;;;;;;

[MeasureGame11DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=72
Disabled=1
Group=Item11
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame11Hour]
Measure=String
String=[MeasureGame11DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame11Min]
Measure=String
String=[MeasureGame11DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame11Sec]
Measure=String
String=[MeasureGame11DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame11HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame11Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame11Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame11Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame11MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame11Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame11LocalTime]
Measure=String
String=[MeasureGame11HourLocal]:[MeasureGame11MinLocal]:[MeasureGame11Sec]
DynamicVariables=1

[MeasureGame11State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=73
Disabled=1
Group=Item11
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame11State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame11State Text "Period: %2"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame11State Text "Game Ended"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
DynamicVariables=1

[MeasureGame11AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=74
Disabled=1
Group=Item11

[MeterGame11AwayScore]
Meter=String
MeasureName=MeasureGame11AwayScore
x=70
y=710
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=76
Disabled=1
Group=Item11

[MeterGame11HomeScore]
Meter=String
MeasureName=MeasureGame11HomeScore
x=r
y=30r
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=75
Disabled=1
Group=Item11

[MeterGame11AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11AwayTeam
x=10
y=710
w=30
h=30

[MeasureGame11HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=77
Disabled=1
Group=Item11

[MeasureGame11Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=78
Disabled=1
Group=Item11

[MeterGame11HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame11State]
Meter=String
MeasureName=MeasureGame11LocalTime
MeasureName2=MeasureGame11Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 12;;;;;;;;;;;;;;;;;;

[MeasureGame12DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=79
Disabled=1
Group=Item12
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame12Hour]
Measure=String
String=[MeasureGame12DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame12Min]
Measure=String
String=[MeasureGame12DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame12Sec]
Measure=String
String=[MeasureGame12DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\3"
DynamicVariables=1

[MeasureGame12HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame12Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame12Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame12Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame12MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame12Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame12LocalTime]
Measure=String
String=[MeasureGame12HourLocal]:[MeasureGame12MinLocal]:[MeasureGame12Sec]
DynamicVariables=1

[MeasureGame12State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=80
Disabled=1
Group=Item12
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame12State Text "Start Time:#CRLF#%1"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame12State Text "Period: %2"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame12State Text "Game Ended"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
DynamicVariables=1

[MeasureGame12AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=81
Disabled=1
Group=Item12

[MeterGame12AwayScore]
Meter=String
MeasureName=MeasureGame12AwayScore
x=70
y=780
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=83
Disabled=1
Group=Item12

[MeterGame12HomeScore]
Meter=String
MeasureName=MeasureGame12HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=82
Disabled=1
Group=Item12

[MeterGame12AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12AwayTeam
x=10
y=780
w=30
h=30

[MeasureGame12HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=84
Disabled=1
Group=Item12

[MeasureGame12Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=85
Disabled=1
Group=Item12

[MeterGame12HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame12State]
Meter=String
MeasureName=MeasureGame12LocalTime
MeasureName2=MeasureGame12Period
MeterStyle=StateStyle
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Tical84 » December 21st, 2018, 11:00 pm

I will test this when I get home tonight.

The time zone of the games is different, however the time in the HTML is GMT or UTC 0 (effectively acting like they are all in the same time zone). So if I understand what is done, I could put 0 as Gamezone and Timezone as my time zone (I'm mountain time or UTC-7)
User avatar
balala
Rainmeter Sage
Posts: 8369
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

balala » December 22nd, 2018, 12:26 pm

Tical84 wrote:
December 21st, 2018, 11:00 pm
The time zone of the games is different, however the time in the HTML is GMT or UTC 0 (effectively acting like they are all in the same time zone). So if I understand what is done, I could put 0 as Gamezone and Timezone as my time zone (I'm mountain time or UTC-7)
Exactly:

Code: Select all

[Variables]
GameZone=0
TimeZone=-7
Tical84
Posts: 25
Joined: November 24th, 2018, 9:34 pm

Re: Unexpected/Missing results using lookahead

Tical84 » December 23rd, 2018, 1:41 am

Interestingly, using 0 and -7 doesn't work. I get weird numbers like 28:00. If I use the -5 and 0 that you have in there it surprisingly works well, it's just off by 12 hours so if I subtract 12 from the formula it works.

I needed to add up to 14 games for today and that brings us to exactly StringIndex=99. I also cut down the width even more by removing seconds and changing the periods to 1st, 2nd or 3rd. Although I may put "start time" back because it may seem like there's 18 minutes left in the period instead of starting at 6PM.

Here's my latest. I'll look at the calculation tomorrow because in theory since the time in the HTML is UTC 0, we can take that variable out completely. Then I'll see why -7 isn't working.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,100

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
GameZone=-5
TimeZone=0
Game=(?(?=.*"gamePk").*"gameDate" : "(.*)",.*"abstractGameState" : "(.*)",.*"teams".*"score" : (\d*),.*"id" : (\d*),.*"score" : (\d*),.*"id" : (\d*),.*"currentPeriod" : (\d*),)

[StateStyle]
X=90
Y=r
W=50
H=56
FontSize=14
FontColor=255,255,255,255
StringAlign=LeftCenter
AntiAlias=1
Hidden=1

[MeasureNHL] 
Measure=WebParser 
UpdateRate=300
;URL=file://#@#Results.inc
URL=https://statsapi.web.nhl.com/api/v1/schedule?expand=schedule.linescore
RegExp=(?siU)"totalItems" : (\d*),#Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game##Game#
FinishAction=[!EnableMeasure "MeasureItemNum"][!UpdateMeasure "MeasureItemNum"]

[MeasureItemNum]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=1
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!DisableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!EnableMeasureGroup "Item1"][!DisableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!DisableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!DisableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!DisableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!DisableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!DisableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!DisableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!DisableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!DisableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition11=(#CURRENTSECTION#=10)
IfTrueAction11=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!DisableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition12=(#CURRENTSECTION#=11)
IfTrueAction12=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!DisableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition13=(#CURRENTSECTION#=12)
IfTrueAction13=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"][!DisableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition14=(#CURRENTSECTION#=13)
IfTrueAction14=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"][!EnableMeasureGroup "Item13"][!DisableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition15=(#CURRENTSECTION#=14)
IfTrueAction15=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"][!EnableMeasureGroup "Item13"][!EnableMeasureGroup "Item14"][!DisableMeasureGroup "Item15"]
IfCondition16=(#CURRENTSECTION#=15)
IfTrueAction16=[!EnableMeasureGroup "Item1"][!EnableMeasureGroup "Item2"][!EnableMeasureGroup "Item3"][!EnableMeasureGroup "Item4"][!EnableMeasureGroup "Item5"][!EnableMeasureGroup "Item6"][!EnableMeasureGroup "Item7"][!EnableMeasureGroup "Item8"][!EnableMeasureGroup "Item9"][!EnableMeasureGroup "Item10"][!EnableMeasureGroup "Item11"][!EnableMeasureGroup "Item12"][!EnableMeasureGroup "Item13"][!EnableMeasureGroup "Item14"][!EnableMeasure "Item15"]
Disabled=1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 1;;;;;;;;;;;;;;;;;;

[MeasureGame1DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=2
Disabled=1
Group=Item1
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame1Hour]
Measure=String
String=[MeasureGame1DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame1Min]
Measure=String
String=[MeasureGame1DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame1HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame1Hour] - #GameZone# - #TimeZone# -12) < 0 ) + ( [MeasureGame1Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame1Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame1MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame1Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame1LocalTime]
Measure=String
String=[MeasureGame1HourLocal]:[MeasureGame1MinLocal]
DynamicVariables=1

[MeasureGame1State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=3
Disabled=1
Group=Item1
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame1State Text "%1"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame1State Text "%2"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame1State Text "Final"][!UpdateMeter "MeterGame1State"][!ShowMeter "MeterGame1State"][!Redraw]
DynamicVariables=1

[MeasureGame1AwayScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=4
Disabled=1
Group=Item1

[MeterGame1AwayScore]
Meter=String
MeasureName=MeasureGame1AwayScore
x=70
y=10
w=30
h=30
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1HomeScore]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=6
Disabled=1
Group=Item1

[MeterGame1HomeScore]
Meter=String
MeasureName=MeasureGame1HomeScore
x=r
y=30r
w=30
h=30
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame1AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=5
Disabled=1
Group=Item1

[MeterGame1AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1AwayTeam
x=10
y=10
w=30
h=30

[MeasureGame1HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=7
Disabled=1
Group=Item1

[MeterGame1HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame1HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame1Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=8
Disabled=1
Group=Item1
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame1State]
Meter=String
MeasureName=MeasureGame1LocalTime
MeasureName2=MeasureGame1Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 2;;;;;;;;;;;;;;;;;;

[MeasureGame2DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=9
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame2Hour]
Measure=String
String=[MeasureGame2DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame2Min]
Measure=String
String=[MeasureGame2DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame2HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame2Hour] - #GameZone# - #TimeZone# -12) < 0 ) + ( [MeasureGame2Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame2Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame2MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame2Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame2LocalTime]
Measure=String
String=[MeasureGame2HourLocal]:[MeasureGame2MinLocal]
DynamicVariables=1

[MeasureGame2State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=10
Disabled=1
Group=Item2
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame2State Text "%1"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame2State Text "%2"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame2State Text "Final"][!UpdateMeter "MeterGame2State"][!ShowMeter "MeterGame2State"][!Redraw]
DynamicVariables=1

[MeasureGame2AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=11
Disabled=1
Group=Item2

[MeterGame2AwayScore]
Meter=String
MeasureName=MeasureGame2AwayScore
x=70
y=80
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=13
Disabled=1
Group=Item2

[MeterGame2HomeScore]
Meter=String
MeasureName=MeasureGame2HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame2AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=12
Disabled=1
Group=Item2

[MeterGame2AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2AwayTeam
x=10
y=80
w=30
h=30

[MeasureGame2HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=14
Disabled=1
Group=Item2

[MeterGame2HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame2HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame2Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=15
Disabled=1
Group=Item2
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame2State]
Meter=String
MeasureName=MeasureGame2LocalTime
MeasureName2=MeasureGame2Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 3;;;;;;;;;;;;;;;;;;

[MeasureGame3DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=16
Disabled=1
Group=Item3
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame3Hour]
Measure=String
String=[MeasureGame3DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame3Min]
Measure=String
String=[MeasureGame3DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame3HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame3Hour] - #GameZone# - #TimeZone# -12 ) < 0 ) + ( [MeasureGame3Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame3Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame3MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame3Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame3LocalTime]
Measure=String
String=[MeasureGame3HourLocal]:[MeasureGame3MinLocal]
DynamicVariables=1

[MeasureGame3State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=17
Disabled=1
Group=Item3
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame3State Text "%1"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame3State Text "%2"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame3State Text "Final"][!UpdateMeter "MeterGame3State"][!ShowMeter "MeterGame3State"][!Redraw]
DynamicVariables=1

[MeasureGame3AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=18
Disabled=1
Group=Item3

[MeterGame3AwayScore]
Meter=String
MeasureName=MeasureGame3AwayScore
x=70
y=150
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=20
Disabled=1
Group=Item3

[MeterGame3HomeScore]
Meter=String
MeasureName=MeasureGame3HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame3AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=19
Disabled=1
Group=Item3

[MeterGame3AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3AwayTeam
x=10
y=150
w=30
h=30

[MeasureGame3HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=21
Disabled=1
Group=Item3

[MeterGame3HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame3HomeTeam
x=r
y=30r
w=30
h=30

[MeasureGame3Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=22
Disabled=1
Group=Item3
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame3State]
Meter=String
MeasureName=MeasureGame3LocalTime
MeasureName2=MeasureGame3Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 4;;;;;;;;;;;;;;;;;;

[MeasureGame4DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=23
Disabled=1
Group=Item4
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame4Hour]
Measure=String
String=[MeasureGame4DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame4Min]
Measure=String
String=[MeasureGame4DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame4HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame4Hour] - #GameZone# - #TimeZone# -12 ) < 0 ) + ( [MeasureGame4Hour] - #GameZone# - #TimeZone# -12 ) + ( Abs ( [MeasureGame4Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame4MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame4Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame4LocalTime]
Measure=String
String=[MeasureGame4HourLocal]:[MeasureGame4MinLocal]
DynamicVariables=1

[MeasureGame4State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=24
Disabled=1
Group=Item4
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame4State Text "%1"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame4State Text "%2"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame4State Text "Final"][!UpdateMeter "MeterGame4State"][!ShowMeter "MeterGame4State"][!Redraw]
DynamicVariables=1

[MeasureGame4AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=25
Disabled=1
Group=Item4

[MeterGame4AwayScore]
Meter=String
MeasureName=MeasureGame4AwayScore
x=70
y=220
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=27
Disabled=1
Group=Item4

[MeterGame4HomeScore]
Meter=String
MeasureName=MeasureGame4HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame4AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=26
Disabled=1
Group=Item4

[MeterGame4AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4AwayTeam
x=10
y=220
w=30
h=30

[MeasureGame4HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=28
Disabled=1
Group=Item4

[MeasureGame4Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=29
Disabled=1
Group=Item4
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame4HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame4HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame4State]
Meter=String
MeasureName=MeasureGame4LocalTime
MeasureName2=MeasureGame4Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 5;;;;;;;;;;;;;;;;;;

[MeasureGame5DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=30
Disabled=1
Group=Item5
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame5Hour]
Measure=String
String=[MeasureGame5DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame5Min]
Measure=String
String=[MeasureGame5DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame5HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame5Hour] - #GameZone# - #TimeZone# - 12) < 0 ) + ( [MeasureGame5Hour] - #GameZone# - #TimeZone# - 12) + ( Abs ( [MeasureGame5Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame5MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame5Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame5LocalTime]
Measure=String
String=[MeasureGame5HourLocal]:[MeasureGame5MinLocal]
DynamicVariables=1

[MeasureGame5State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=31
Disabled=1
Group=Item5
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame5State Text "%1"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame5State Text "%2"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame5State Text "Final"][!UpdateMeter "MeterGame5State"][!ShowMeter "MeterGame5State"][!Redraw]
DynamicVariables=1

[MeasureGame5AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=32
Disabled=1
Group=Item5

[MeterGame5AwayScore]
Meter=String
MeasureName=MeasureGame5AwayScore
x=70
y=290
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=34
Disabled=1
Group=Item5

[MeterGame5HomeScore]
Meter=String
MeasureName=MeasureGame5HomeScore
x=r
y=30r
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame5AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=33
Disabled=1
Group=Item5

[MeterGame5AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5AwayTeam
x=10
y=290
w=30
h=30

[MeasureGame5HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=35
Disabled=1
Group=Item5

[MeasureGame5Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=36
Disabled=1
Group=Item5
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame5HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame5HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame5State]
Meter=String
MeasureName=MeasureGame5LocalTime
MeasureName2=MeasureGame5Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 6;;;;;;;;;;;;;;;;;;

[MeasureGame6DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=37
Disabled=1
Group=Item6
RegExpSubstitute=1
Substitute="^(.*)T(.{0,5}).+$":"\2"

[MeasureGame6Hour]
Measure=String
String=[MeasureGame6DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame6Min]
Measure=String
String=[MeasureGame6DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame6HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame6Hour] - #GameZone# - #TimeZone# -12) < 0 ) + ( [MeasureGame6Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame6Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame6MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame6Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame6LocalTime]
Measure=String
String=[MeasureGame6HourLocal]:[MeasureGame6MinLocal]
DynamicVariables=1

[MeasureGame6State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=38
Disabled=1
Group=Item6
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame6State Text "%1"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame6State Text "%2"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame6State Text "Final"][!UpdateMeter "MeterGame6State"][!ShowMeter "MeterGame6State"][!Redraw]
DynamicVariables=1

[MeasureGame6AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=39
Disabled=1
Group=Item6

[MeterGame6AwayScore]
Meter=String
MeasureName=MeasureGame6AwayScore
x=70
y=360
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=41
Disabled=1
Group=Item6

[MeterGame6HomeScore]
Meter=String
MeasureName=MeasureGame6HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame6AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=40
Disabled=1
Group=Item6

[MeterGame6AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6AwayTeam
x=10
y=360
w=30
h=30

[MeasureGame6HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=42
Disabled=1
Group=Item6

[MeasureGame6Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=43
Disabled=1
Group=Item6
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame6HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame6HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame6State]
Meter=String
MeasureName=MeasureGame6LocalTime
MeasureName2=MeasureGame6Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 7;;;;;;;;;;;;;;;;;;

[MeasureGame7DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=44
Disabled=1
Group=Item2
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame7Hour]
Measure=String
String=[MeasureGame7DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame7Min]
Measure=String
String=[MeasureGame7DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame7HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame7Hour] - #GameZone# - #TimeZone# -12) < 0 ) + ( [MeasureGame7Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame7Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame7MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame7Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame7LocalTime]
Measure=String
String=[MeasureGame7HourLocal]:[MeasureGame7MinLocal]
DynamicVariables=1

[MeasureGame7State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=45
Disabled=1
Group=Item7
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame7State Text "%1"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame7State Text "%2"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame7State Text "Final"][!UpdateMeter "MeterGame7State"][!ShowMeter "MeterGame7State"][!Redraw]
DynamicVariables=1

[MeasureGame7AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=46
Disabled=1
Group=Item7

[MeterGame7AwayScore]
Meter=String
MeasureName=MeasureGame7AwayScore
x=70
y=430
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=48
Disabled=1
Group=Item7

[MeterGame7HomeScore]
Meter=String
MeasureName=MeasureGame7HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame7AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=47
Disabled=1
Group=Item7

[MeterGame7AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7AwayTeam
x=10
y=430
w=30
h=30

[MeasureGame7HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=49
Disabled=1
Group=Item7

[MeasureGame7Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=50
Disabled=1
Group=Item7
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame7HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame7HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame7State]
Meter=String
MeasureName=MeasureGame7LocalTime
MeasureName2=MeasureGame7Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 8;;;;;;;;;;;;;;;;;;

[MeasureGame8DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=51
Disabled=1
Group=Item8
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame8Hour]
Measure=String
String=[MeasureGame8DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame8Min]
Measure=String
String=[MeasureGame8DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame8HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame8Hour] - #GameZone# - #TimeZone# -12 ) < 0 ) + ( [MeasureGame8Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame8Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame8MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame8Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame8LocalTime]
Measure=String
String=[MeasureGame8HourLocal]:[MeasureGame8MinLocal]
DynamicVariables=1

[MeasureGame8State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=52
Disabled=1
Group=Item8
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame8State Text "%1"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame8State Text "%2"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame8State Text "Final"][!UpdateMeter "MeterGame8State"][!ShowMeter "MeterGame8State"][!Redraw]
DynamicVariables=1

[MeasureGame8AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=53
Disabled=1
Group=Item8

[MeterGame8AwayScore]
Meter=String
MeasureName=MeasureGame8AwayScore
x=70
y=500
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=55
Disabled=1
Group=Item8

[MeterGame8HomeScore]
Meter=String
MeasureName=MeasureGame8HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame8AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=54
Disabled=1
Group=Item8

[MeterGame8AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8AwayTeam
x=10
y=500
w=30
h=30

[MeasureGame8HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=56
Disabled=1
Group=Item8

[MeasureGame8Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=57
Disabled=1
Group=Item8
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame8HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame8HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame8State]
Meter=String
MeasureName=MeasureGame8LocalTime
MeasureName2=MeasureGame8Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 9;;;;;;;;;;;;;;;;;;

[MeasureGame9DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=58
Disabled=1
Group=Item9
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame9Hour]
Measure=String
String=[MeasureGame9DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame9Min]
Measure=String
String=[MeasureGame9DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame9HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame9Hour] - #GameZone# - #TimeZone# -12 ) < 0 ) + ( [MeasureGame9Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame9Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame9MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame9Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame9LocalTime]
Measure=String
String=[MeasureGame9HourLocal]:[MeasureGame9MinLocal]
DynamicVariables=1

[MeasureGame9State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=59
Disabled=1
Group=Item9
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame9State Text "%1"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame9State Text "%2"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame9State Text "Final"][!UpdateMeter "MeterGame9State"][!ShowMeter "MeterGame9State"][!Redraw]
DynamicVariables=1

[MeasureGame9AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=60
Disabled=1
Group=Item9

[MeterGame9AwayScore]
Meter=String
MeasureName=MeasureGame9AwayScore
x=70
y=570
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=62
Disabled=1
Group=Item9

[MeterGame9HomeScore]
Meter=String
MeasureName=MeasureGame9HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame9AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=61
Disabled=1
Group=Item9

[MeterGame9AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9AwayTeam
x=10
y=570
w=30
h=30

[MeasureGame9HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=63
Disabled=1
Group=Item9

[MeasureGame9Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=64
Disabled=1
Group=Item9
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame9HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame9HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame9State]
Meter=String
MeasureName=MeasureGame9LocalTime
MeasureName2=MeasureGame9Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 10;;;;;;;;;;;;;;;;;;

[MeasureGame10DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=65
Disabled=1
Group=Item10
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame10Hour]
Measure=String
String=[MeasureGame10DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame10Min]
Measure=String
String=[MeasureGame10DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame10HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame10Hour] - #GameZone# - #TimeZone# -12) < 0 ) + ( [MeasureGame10Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame10Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame10MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame10Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame10LocalTime]
Measure=String
String=[MeasureGame10HourLocal]:[MeasureGame10MinLocal]
DynamicVariables=1

[MeasureGame10State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=66
Disabled=1
Group=Item10
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame10State Text "%1"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame10State Text "%2"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame10State Text "Final"][!UpdateMeter "MeterGame10State"][!ShowMeter "MeterGame10State"][!Redraw]
DynamicVariables=1

[MeasureGame10AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=67
Disabled=1
Group=Item10

[MeterGame10AwayScore]
Meter=String
MeasureName=MeasureGame10AwayScore
x=70
y=640
w=500
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=69
Disabled=1
Group=Item10

[MeterGame10HomeScore]
Meter=String
MeasureName=MeasureGame10HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame10AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=68
Disabled=1
Group=Item10

[MeterGame10AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10AwayTeam
x=10
y=640
w=30
h=30

[MeasureGame10HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=70
Disabled=1
Group=Item10

[MeasureGame10Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=71
Disabled=1
Group=Item10
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame10HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame10HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame10State]
Meter=String
MeasureName=MeasureGame10LocalTime
MeasureName2=MeasureGame10Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 11;;;;;;;;;;;;;;;;;;

[MeasureGame11DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=72
Disabled=1
Group=Item11
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame11Hour]
Measure=String
String=[MeasureGame11DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame11Min]
Measure=String
String=[MeasureGame11DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame11HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame11Hour] - #GameZone# - #TimeZone# -12) < 0 ) + ( [MeasureGame11Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame11Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame11MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame11Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame11LocalTime]
Measure=String
String=[MeasureGame11HourLocal]:[MeasureGame11MinLocal]
DynamicVariables=1

[MeasureGame11State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=73
Disabled=1
Group=Item11
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame11State Text "%1"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame11State Text "%2"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame11State Text "Final"][!UpdateMeter "MeterGame11State"][!ShowMeter "MeterGame11State"][!Redraw]
DynamicVariables=1

[MeasureGame11AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=74
Disabled=1
Group=Item11

[MeterGame11AwayScore]
Meter=String
MeasureName=MeasureGame11AwayScore
x=70
y=710
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=76
Disabled=1
Group=Item11

[MeterGame11HomeScore]
Meter=String
MeasureName=MeasureGame11HomeScore
x=r
y=30r
w=40
h=40
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame11AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=75
Disabled=1
Group=Item11

[MeterGame11AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11AwayTeam
x=10
y=710
w=30
h=30

[MeasureGame11HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=77
Disabled=1
Group=Item11

[MeasureGame11Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=78
Disabled=1
Group=Item11
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame11HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame11HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame11State]
Meter=String
MeasureName=MeasureGame11LocalTime
MeasureName2=MeasureGame11Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 12;;;;;;;;;;;;;;;;;;

[MeasureGame12DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=79
Disabled=1
Group=Item12
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame12Hour]
Measure=String
String=[MeasureGame12DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame12Min]
Measure=String
String=[MeasureGame12DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame12HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame12Hour] - #GameZone# - #TimeZone# -12) < 0 ) + ( [MeasureGame12Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame12Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame12MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame12Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame12LocalTime]
Measure=String
String=[MeasureGame12HourLocal]:[MeasureGame12MinLocal]
DynamicVariables=1

[MeasureGame12State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=80
Disabled=1
Group=Item12
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame12State Text "%1"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame12State Text "%2"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame12State Text "Final"][!UpdateMeter "MeterGame12State"][!ShowMeter "MeterGame12State"][!Redraw]
DynamicVariables=1

[MeasureGame12AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=81
Disabled=1
Group=Item12

[MeterGame12AwayScore]
Meter=String
MeasureName=MeasureGame12AwayScore
x=70
y=780
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=83
Disabled=1
Group=Item12

[MeterGame12HomeScore]
Meter=String
MeasureName=MeasureGame12HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame12AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=82
Disabled=1
Group=Item12

[MeterGame12AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12AwayTeam
x=10
y=780
w=30
h=30

[MeasureGame12HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=84
Disabled=1
Group=Item12

[MeasureGame12Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=85
Disabled=1
Group=Item12
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame12HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame12HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame12State]
Meter=String
MeasureName=MeasureGame12LocalTime
MeasureName2=MeasureGame12Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 13;;;;;;;;;;;;;;;;;;

[MeasureGame13DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=86
Disabled=1
Group=Item13
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame13Hour]
Measure=String
String=[MeasureGame13DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame13Min]
Measure=String
String=[MeasureGame13DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame13HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame13Hour] - #GameZone# - #TimeZone# -12) < 0 ) + ( [MeasureGame13Hour] - #GameZone# - #TimeZone# -12) + ( Abs ( [MeasureGame13Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame13MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame13Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame13LocalTime]
Measure=String
String=[MeasureGame13HourLocal]:[MeasureGame13MinLocal]
DynamicVariables=1

[MeasureGame13State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=87
Disabled=1
Group=Item13
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame13State Text "%1"][!UpdateMeter "MeterGame13State"][!ShowMeter "MeterGame13State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame13State Text "%2"][!UpdateMeter "MeterGame13State"][!ShowMeter "MeterGame13State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame13State Text "Final][!UpdateMeter "MeterGame13State"][!ShowMeter "MeterGame13State"][!Redraw]
DynamicVariables=1

[MeasureGame13AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=88
Disabled=1
Group=Item13

[MeterGame13AwayScore]
Meter=String
MeasureName=MeasureGame13AwayScore
x=70
y=850
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame13HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=90
Disabled=1
Group=Item13

[MeterGame13HomeScore]
Meter=String
MeasureName=MeasureGame13HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame13AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=89
Disabled=1
Group=Item13

[MeterGame13AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame13AwayTeam
x=10
y=850
w=30
h=30

[MeasureGame13HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=91
Disabled=1
Group=Item13

[MeasureGame13Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=92
Disabled=1
Group=Item13
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame13HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame13HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame13State]
Meter=String
MeasureName=MeasureGame13LocalTime
MeasureName2=MeasureGame13Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 14;;;;;;;;;;;;;;;;;;

[MeasureGame14DateTime]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=93
Disabled=1
Group=Item14
RegExpSubstitute=1
Substitute="^(.*)T(.*)Z$":"\2"

[MeasureGame14Hour]
Measure=String
String=[MeasureGame14DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
DynamicVariables=1

[MeasureGame14Min]
Measure=String
String=[MeasureGame14DateTime]
RegExpSubstitute=1
Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
DynamicVariables=1

[MeasureGame14HourLocal]
Measure=Calc
Formula=( 24 * (( [MeasureGame14Hour] - #GameZone# - #TimeZone# -12 ) < 0 ) + ( [MeasureGame14Hour] - #GameZone# - #TimeZone# -12 ) + ( Abs ( [MeasureGame14Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame14MinLocal]
Measure=Calc
Formula=( Abs (( [MeasureGame14Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
RegExpSubstitute=1
Substitute="^(\d{1})$":"0\1"
DynamicVariables=1

[MeasureGame14LocalTime]
Measure=String
String=[MeasureGame14HourLocal]:[MeasureGame14MinLocal]
DynamicVariables=1

[MeasureGame14State]
Measure=WebParser
URL=[MeasureNHL]
StringIndex=94
Disabled=1
Group=Item14
Substitute="Final":"2","Live":"1","Preview":"0"
IfCondition=([#CURRENTSECTION#]=0)
IfTrueAction=[!SetOption MeterGame14State Text "%1"][!UpdateMeter "MeterGame14State"][!ShowMeter "MeterGame14State"][!Redraw]
IfCondition2=([#CURRENTSECTION#]=1)
IfTrueAction2=[!SetOption MeterGame14State Text "%2"][!UpdateMeter "MeterGame14State"][!ShowMeter "MeterGame14State"][!Redraw]
IfCondition3=([#CURRENTSECTION#]=2)
IfTrueAction3=[!SetOption MeterGame14State Text "Final"][!UpdateMeter "MeterGame14State"][!ShowMeter "MeterGame14State"][!Redraw]
DynamicVariables=1

[MeasureGame14AwayScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=95
Disabled=1
Group=Item14

[MeterGame14AwayScore]
Meter=String
MeasureName=MeasureGame14AwayScore
x=70
y=920
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame14HomeScore]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=97
Disabled=1
Group=Item14

[MeterGame14HomeScore]
Meter=String
MeasureName=MeasureGame14HomeScore
x=r
y=30r
w=25
h=25
FontSize=18
FontColor=255,255,255,255
StringAlign=Right
antialias=1

[MeasureGame14AwayTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=96
Disabled=1
Group=Item14

[MeterGame14AwayTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame14AwayTeam
x=10
y=920
w=30
h=30

[MeasureGame14HomeTeam]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=98
Disabled=1
Group=Item14

[MeasureGame14Period]
Measure=WebParser 
URL=[MeasureNHL]
StringIndex=99
Disabled=1
Group=Item14
Substitute="1":"1st","2":"2nd","3":"3rd"

[MeterGame14HomeTeam]
Meter=Image
ImagePath=#@#
MeasureName=MeasureGame14HomeTeam
x=r
y=30r
w=30
h=30

[MeterGame14State]
Meter=String
MeasureName=MeasureGame14LocalTime
MeasureName2=MeasureGame14Period
MeterStyle=StateStyle

;;;;;;;;;;;;;;;;;;;;;;;;;;;GAME 15;;;;;;;;;;;;;;;;;;

; [MeasureGame15DateTime]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=79
; Disabled=1
; Group=Item15
; RegExpSubstitute=1
; Substitute="^(.*)T(.*)Z$":"\2"

; [MeasureGame15Hour]
; Measure=String
; String=[MeasureGame15DateTime]
; RegExpSubstitute=1
; Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\1"
; DynamicVariables=1

; [MeasureGame15Min]
; Measure=String
; String=[MeasureGame15DateTime]
; RegExpSubstitute=1
; Substitute="^(\d{1,2}):(\d{2}):(\d{2})$":"\2"
; DynamicVariables=1

; [MeasureGame15HourLocal]
; Measure=Calc
; Formula=( 24 * (( [MeasureGame15Hour] - #GameZone# - #TimeZone# ) < 0 ) + ( [MeasureGame15Hour] - #GameZone# - #TimeZone# ) + ( Abs ( [MeasureGame15Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) > 60 ))
; RegExpSubstitute=1
; Substitute="^(\d{1})$":"0\1"
; DynamicVariables=1

; [MeasureGame15MinLocal]
; Measure=Calc
; Formula=( Abs (( [MeasureGame15Min] + ( 60 * Frac ( #GameZone# )) + ( 60 * Frac ( #TimeZone# ))) % 60 ))
; RegExpSubstitute=1
; Substitute="^(\d{1})$":"0\1"
; DynamicVariables=1

; [MeasureGame15LocalTime]
; Measure=String
; String=[MeasureGame15HourLocal]:[MeasureGame15MinLocal]
; DynamicVariables=1

; [MeasureGame12State]
; Measure=WebParser
; URL=[MeasureNHL]
; StringIndex=80
; Disabled=1
; Group=Item15
; Substitute="Final":"2","Live":"1","Preview":"0"
; IfCondition=([#CURRENTSECTION#]=0)
; IfTrueAction=[!SetOption MeterGame15State Text "%1"][!UpdateMeter "MeterGame15State"][!ShowMeter "MeterGame15State"][!Redraw]
; IfCondition2=([#CURRENTSECTION#]=1)
; IfTrueAction2=[!SetOption MeterGame15State Text "%2"][!UpdateMeter "MeterGame15State"][!ShowMeter "MeterGame15State"][!Redraw]
; IfCondition3=([#CURRENTSECTION#]=2)
; IfTrueAction3=[!SetOption MeterGame15State Text "Final"][!UpdateMeter "MeterGame15State"][!ShowMeter "MeterGame15State"][!Redraw]
; DynamicVariables=1

; [MeasureGame15AwayScore]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=81
; Disabled=1
; Group=Item15

; [MeterGame15AwayScore]
; Meter=String
; MeasureName=MeasureGame15AwayScore
; x=70
; y=990
; w=25
; h=25
; FontSize=18
; FontColor=255,255,255,255
; StringAlign=Right
; antialias=1

; [MeasureGame15HomeScore]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=83
; Disabled=1
; Group=Item15

; [MeterGame15HomeScore]
; Meter=String
; MeasureName=MeasureGame15HomeScore
; x=r
; y=30r
; w=25
; h=25
; FontSize=18
; FontColor=255,255,255,255
; StringAlign=Right
; antialias=1

; [MeasureGame15AwayTeam]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=82
; Disabled=1
; Group=Item15

; [MeterGame15AwayTeam]
; Meter=Image
; ImagePath=#@#
; MeasureName=MeasureGame15AwayTeam
; x=10
; y=990
; w=30
; h=30

; [MeasureGame15HomeTeam]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=84
; Disabled=1
; Group=Item15

; [MeasureGame15Period]
; Measure=WebParser 
; URL=[MeasureNHL]
; StringIndex=85
; Disabled=1
; Group=Item15
; Substitute="1":"1st","2":"2nd","3":"3rd"

; [MeterGame15HomeTeam]
; Meter=Image
; ImagePath=#@#
; MeasureName=MeasureGame15HomeTeam
; x=r
; y=30r
; w=30
; h=30

; [MeterGame15State]
; Meter=String
; MeasureName=MeasureGame15LocalTime
; MeasureName2=MeasureGame15Period
; MeterStyle=StateStyle
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 8369
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Unexpected/Missing results using lookahead

balala » December 23rd, 2018, 12:32 pm

For now your last posted code looks good. I got an error in log. You'll have to check it.
After Christmas, when will have a little bit more time, I'll try to take a deeper look. But it seems ok for now, as I said.