Trying to make a skin which will close the music player if not in use for 10min.
I have an ActionTimer measure which kills the player (PSkill) after 10min.
I am trying to trigger/reset it, with OnChangeAction of NowPlaying/state.
How do I evaluate the state (0,1,2) and set different actions to excecute depending on it's value? ("execute ActionTimer" or "Stop ActionTimer").
Also I do not know whether the "substitute" part was already done or not...
In the snippet, what's indented is what doesn't work. I tried 1001 different syntaxes, none of them worked.
Hope that was understandable, help would be appreciated.
Code: Select all
[mState]
Measure=NowPlaying
PlayerName=Winamp
PlayerType=STATE
Substitute="0":"Play.png","1":"Pause.png","2":"Play.png"
KiActPlay.png=[!CommandMeasure mKillTimer "Execute 1"]
KiActPause.png=[!CommandMeasure mKillTimer "Stop 1"]
KiAct0=[!CommandMeasure mKillTimer "Execute 1"]
KiAct0=[!CommandMeasure mKillTimer "Stop 1"]
OnChangeAction=[!KiAct#STATE#]
[mKillTimer]
Measure=Plugin
Plugin=ActionTimer
ActionList1= wait 1000 | ["#@#PSkill\KillWinamp.bat"]