No, nothing has to be removed, at least not necessarily. Gamedir4 is set dynamically, so there is no need to remove the explicitly set value. But if you want, it can be done, Gamdir4 (or whatever number you want - see below), can be removed.Springchiken wrote: ↑March 30th, 2020, 8:44 pm Was there anything i was meant to remove from this
Before i added this?
Yep, probably I made here a mistake. I should have set not Gamedir4, but probably Gamedir2, right? At least based on this.
You should replace Gamedir4 with Gamedir2 (or the desired index):
Code: Select all
[MeasureSpotify]
Measure=Plugin
Plugin=Process
ProcessName=Spotify.exe
IfCondition=(#CURRENTSECTION#>0)
IfTrueAction=[!SetVariable Gamedir2 """[!CommandMeasure "MeasureRun" "Run"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"][!Delay "1000"][!Update]"""][!UpdateMeter "Icon2"]
IfFalseAction=[!SetVariable Gamedir2 """["ADD-COMPLETE-PATH\Spotify.exe"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"][!Delay "1000"][!Update]"""][!UpdateMeter "Icon2"]
Sorry for my mistake.
Have you succeeded updating the code? Does it work?