What did I try (unable to understand the reason all did not work):
Changing fontcolor as per rrr,ggg,bbb,aaa in condition (not manually in the meter).
Using !SetOption Bang properly.
Using !WriteKeyValue properly - Used it couple of more times in the program and they all work.
Using !SetTransperancy (What could have gone wrong here?).
All lead to one conclusion: Wrong condition stated.
What I need: Help in writing the correct condition along with the true and false action (either or is fine) to change the opacity as per the state of shuffle (or even repeat - one solution for all).
Code: Contains unicode characters, so provided a way-out just change the ShuffleText variable to whatever you want.
Code: Select all
[Variables]
PlayerName=AIMP
FontName=Segoe UI
FontColor=200,200,200
HighlightColor=255,255,255
ShuffleText=π
[MeasureNowPlaying]
Measure=Plugin
Plugin=NowPlaying
PlayerName=#PlayerName#
PlayerType=Progress
AverageSize=6
MinValue=0
MaxValue=100
[MeasureShuffle]
Measure=Plugin
Plugin=NowPlaying
PlayerName=#PLayerName#
PlayerType=Shuffle
Substitute="0":"#ShuffleText#","1":"#ShuffleText#"
[M_Shuffle]
Meter=String
MeasureName=MeasureShuffle
X=(([M_Track:W])-378)
Y=([M_Bar:Y]+(8*#Scale#))
FontFace=#FONTNAME#
FontColor=#FONTCOLOR#
FontSize=15
Text=%1
ClipString=1
AntiAlias=1
DynamicVariables=1
;IfCondition=([MeasureShuffle]=1)
;IfTrueAction=[!SetOption M_Shuffle FontColor #HighlightColor#,255][!Redraw]
;IfFalseAction=[!SetOption M_Shuffle FontColor #FONTCOLOR#,150][!Redraw]
;IfCondition=([MeasureShuffle]=1)
;IfTrueAction=[!SetTransparency 100][!Redraw]
;IfFalseAction=[!SetTransparency 255][!Redraw]
LeftMouseUpAction=[!CommandMeasure "MeasureNowPlaying" "SetShuffle -1"][!Redraw]
Thanks in advance.