Unfortunately I don't have installed the Foobar2000, so I can't check the following solution specifically with that player, but I'd propose a solution, which requires a new variable. Let's name this variable Repeat. Add it to the [Variables] section:
This variable will control the repetition: if its value is 0, repeat is not set, if it's 1, it is set.
Now you'll need a Calc measure, to follow the actual value of the Repeat variable:
Code: Select all
[MeasureSetRepeat]
Measure=Calc
Formula=#Repeat#
IfCondition=(MeasureSetRepeat=0)
IfTrueAction=[!CommandMeasure "MeasureRepeat" "SetRepeat 0"][!SetOption Repeat ImageName "#@#Repeat1.png"][!UpdateMeasure "MeasureRepeat"][!UpdateMeter "Repeat"][!Redraw]
IfFalseAction=[!CommandMeasure "MeasureRepeat" "SetRepeat 1"][!SetOption Repeat ImageName "#@#Repeat3.png"][!UpdateMeasure "MeasureRepeat"][!UpdateMeter "Repeat"][!Redraw]
DynamicVariables=1
According to the value of the variable, the above measure will set the image shown by the [Repeat] meter, along with setting the proper state of the [MeasureRepeat] measure. With this solution, the [RepeatOn] meter isn't needed any more, you can simply remove it. We'll use just the [Repeat] and set its image accordingly.
One single thing will be needed furtherly: to add an option to the [Repeat] meter, to set the value of the Repeat variable: to add an option to the [Repeat] meter, to set the value of the Repeat variable. So, replace the LeftMouseUpAction option of the [Repeat] meter, with the following one:
LeftMouseUpAction=[!SetVariable Repeat "(1-#Repeat#)"][!UpdateMeasure "MeasureSetRepeat"]. But this option requires to also add the
DynamicVariables=1 option, so don't forget it.
As I said, I didn't check this solution with Foobar2000, because I can't, but I'm sure it'll work. Does it?