Yep, could be, however there might be a problem. But let's see.now I want that the gates do the same but now when the windows media player plays and when the WMP stops, I mean the gate must open automatically when the WMP starts playing and must close automatically when the WMP stops.
Add the following measure to your code:
Code:
[MeasurePlayer]Measure=NowPlayingPlayerName=WMPPlayerType=StateIfCondition=(#CURRENTSECTION#=1)IfTrueAction=[!ActivateConfig "ConfigName" "SkinName.ini"]IfFalseAction=[!ActivateConfig "ConfigName"]
- I assume "gate" is a skin, but am I right? If I am, you have to replace ConfigName and SkinName with the appropriate names of your "gate" skin. If "gate" is not a skin, but some meters of the current skin, you have to replace the above !ActivateConfig and !DeactivateConfig bangs with !ShowMeter and !HideMeter. Which is the case, is "gate" a distinct skin?
- With the above solution, the SkinName skin will be activated only when the player plays. The skin will be deactivated (unloaded) whenever are you stopping or pausing the player. To keep the skin activated when you just pause the playback, replace the above IfCondition by this: IfCondition=(#CURRENTSECTION#>=1).
- Unfortunately this solution works only with the, let's say, classic Windows Media Player. The new Win 10 and Win 11 app is not supported anymore, so if you're using that one (and I think you are), this solution is completely useless. Sorry in this case.
Statistics: Posted by balala — Yesterday, 8:26 pm