|
| 1 | +[Variables] |
| 2 | +NowPlaying.PlayerName= |
| 3 | +NowPlaying.PlayerPlugin=WNP |
| 4 | +NowPlaying.MSUpdate=500 |
| 5 | +; Arrange the six (6) player names [WEB,AIMP,CAD,ITUNES,WINAMP,WMP] in descending order of hierachy, higher hierachy means the algo will select it over the other ones |
| 6 | +NowPlaying.Hierachy=WEB,AIMP,CAD,ITUNES,WINAMP,WMP |
| 7 | +
|
| 8 | +[MSState.Web] |
| 9 | +Measure=Plugin |
| 10 | +Plugin=WebNowPlaying |
| 11 | +PlayerType=State |
| 12 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 13 | +OnChangeAction=[!CommandMeasure "MS.PSRM" "SetActivePlayer"] |
| 14 | +
|
| 15 | +[MSState.AIMP] |
| 16 | +Measure=NowPlaying |
| 17 | +PlayerName=AIMP |
| 18 | +PlayerType=State |
| 19 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 20 | +OnChangeAction=[!CommandMeasure "MS.PSRM" "SetActivePlayer"] |
| 21 | +
|
| 22 | +[MSState.CAD] |
| 23 | +Measure=NowPlaying |
| 24 | +PlayerName=CAD |
| 25 | +PlayerType=State |
| 26 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 27 | +OnChangeAction=[!CommandMeasure "MS.PSRM" "SetActivePlayer"] |
| 28 | +
|
| 29 | +[MSState.ITUNES] |
| 30 | +Measure=NowPlaying |
| 31 | +PlayerName=ITUNES |
| 32 | +PlayerType=State |
| 33 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 34 | +OnChangeAction=[!CommandMeasure "MS.PSRM" "SetActivePlayer"] |
| 35 | +
|
| 36 | +[MSState.WINAMP] |
| 37 | +Measure=NowPlaying |
| 38 | +PlayerName=WINAMP |
| 39 | +PlayerType=State |
| 40 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 41 | +OnChangeAction=[!CommandMeasure "MS.PSRM" "SetActivePlayer"] |
| 42 | +
|
| 43 | +[MSState.WMP] |
| 44 | +Measure=NowPlaying |
| 45 | +PlayerName=WMP |
| 46 | +PlayerType=State |
| 47 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 48 | +OnChangeAction=[!CommandMeasure "MS.PSRM" "SetActivePlayer"] |
| 49 | +
|
| 50 | +[MSState.Update] |
| 51 | +Measure=String |
| 52 | +OnUpdateAction=[!Delay 250][!CommandMeasure "MS.PSRM" "SetActivePlayer"][!DisableMeasure #CurrentSection#] |
| 53 | +
|
| 54 | +[MS.PSRM] |
| 55 | +Measure=Plugin |
| 56 | +Plugin=PowershellRM |
| 57 | +ScriptFile=#@#Modules\NowPlaying\Include\MediaSwitcher.ps1 |
| 58 | +
|
| 59 | +[MS.NP.Title] |
| 60 | +Group=MS.Media | MS.NP |
| 61 | +Measure=NowPlaying |
| 62 | +PlayerName=#NowPlaying.PlayerName# |
| 63 | +PlayerType=Title |
| 64 | +DynamicVariables=1 |
| 65 | +Disabled=1 |
| 66 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 67 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Title] |
| 68 | +
|
| 69 | +[MS.NP.Artist] |
| 70 | +Group=MS.Media | MS.NP |
| 71 | +Measure=NowPlaying |
| 72 | +PlayerName=[MS.NP.Title] |
| 73 | +PlayerType=Artist |
| 74 | +Disabled=1 |
| 75 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 76 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Artist] |
| 77 | +
|
| 78 | +[MS.NP.Album] |
| 79 | +Group=MS.Media | MS.NP |
| 80 | +Measure=NowPlaying |
| 81 | +PlayerName=[MS.NP.Title] |
| 82 | +PlayerType=Album |
| 83 | +Disabled=1 |
| 84 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 85 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Album] |
| 86 | +
|
| 87 | +[MS.NP.Cover] |
| 88 | +Group=MS.Media | MS.NP |
| 89 | +Measure=NowPlaying |
| 90 | +PlayerName=[MS.NP.Title] |
| 91 | +PlayerType=Cover |
| 92 | +Disabled=1 |
| 93 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 94 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Cover] |
| 95 | +
|
| 96 | +[MS.NP.Progress] |
| 97 | +Group=MS.Media | MS.NP |
| 98 | +Measure=NowPlaying |
| 99 | +PlayerName=[MS.NP.Title] |
| 100 | +PlayerType=Progress |
| 101 | +Disabled=1 |
| 102 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 103 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Progress] |
| 104 | +
|
| 105 | +[MS.NP.Position] |
| 106 | +Group=MS.Media | MS.NP |
| 107 | +Measure=NowPlaying |
| 108 | +PlayerName=[MS.NP.Title] |
| 109 | +PlayerType=Position |
| 110 | +Disabled=1 |
| 111 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 112 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Position] |
| 113 | +
|
| 114 | +[MS.NP.Duration] |
| 115 | +Group=MS.Media | MS.NP |
| 116 | +Measure=NowPlaying |
| 117 | +PlayerName=[MS.NP.Title] |
| 118 | +PlayerType=Duration |
| 119 | +Disabled=1 |
| 120 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 121 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Duration] |
| 122 | +
|
| 123 | +[MS.NP.Status] |
| 124 | +Group=MS.Media | MS.NP |
| 125 | +Measure=NowPlaying |
| 126 | +PlayerName=[MS.NP.Title] |
| 127 | +PlayerType=Status |
| 128 | +Disabled=1 |
| 129 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 130 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Status] |
| 131 | +
|
| 132 | +[MS.NP.State] |
| 133 | +Group=MS.Media | MS.NP |
| 134 | +Measure=NowPlaying |
| 135 | +PlayerName=[MS.NP.Title] |
| 136 | +PlayerType=State |
| 137 | +Disabled=1 |
| 138 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 139 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.State] |
| 140 | +
|
| 141 | +[MS.WNP.Title] |
| 142 | +Group=MS.Media | MS.WNP |
| 143 | +Measure=Plugin |
| 144 | +Plugin=WebNowPlaying |
| 145 | +PlayerType=Title |
| 146 | +DynamicVariables=1 |
| 147 | +Disabled=1 |
| 148 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 149 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Title] |
| 150 | +
|
| 151 | +[MS.WNP.Artist] |
| 152 | +Group=MS.Media | MS.WNP |
| 153 | +Measure=Plugin |
| 154 | +Plugin=WebNowPlaying |
| 155 | +PlayerType=Artist |
| 156 | +DynamicVariables=1 |
| 157 | +Disabled=1 |
| 158 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 159 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Artist] |
| 160 | +
|
| 161 | +[MS.WNP.Album] |
| 162 | +Group=MS.Media | MS.WNP |
| 163 | +Measure=Plugin |
| 164 | +Plugin=WebNowPlaying |
| 165 | +PlayerType=Album |
| 166 | +DynamicVariables=1 |
| 167 | +Disabled=1 |
| 168 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 169 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Album] |
| 170 | +
|
| 171 | +[MS.WNP.Cover] |
| 172 | +Group=MS.Media | MS.WNP |
| 173 | +Measure=Plugin |
| 174 | +Plugin=WebNowPlaying |
| 175 | +PlayerType=Cover |
| 176 | +DynamicVariables=1 |
| 177 | +Disabled=1 |
| 178 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 179 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Cover] |
| 180 | +
|
| 181 | +[MS.WNP.Progress] |
| 182 | +Group=MS.Media | MS.WNP |
| 183 | +Measure=Plugin |
| 184 | +Plugin=WebNowPlaying |
| 185 | +PlayerType=Progress |
| 186 | +DynamicVariables=1 |
| 187 | +Disabled=1 |
| 188 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 189 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Progress] |
| 190 | +
|
| 191 | +[MS.WNP.Position] |
| 192 | +Group=MS.Media | MS.WNP |
| 193 | +Measure=Plugin |
| 194 | +Plugin=WebNowPlaying |
| 195 | +PlayerType=Position |
| 196 | +DynamicVariables=1 |
| 197 | +Disabled=1 |
| 198 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 199 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Position] |
| 200 | +
|
| 201 | +[MS.WNP.Duration] |
| 202 | +Group=MS.Media | MS.WNP |
| 203 | +Measure=Plugin |
| 204 | +Plugin=WebNowPlaying |
| 205 | +PlayerType=Duration |
| 206 | +DynamicVariables=1 |
| 207 | +Disabled=1 |
| 208 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 209 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Duration] |
| 210 | +
|
| 211 | +[MS.WNP.Status] |
| 212 | +Group=MS.Media | MS.WNP |
| 213 | +Measure=Plugin |
| 214 | +Plugin=WebNowPlaying |
| 215 | +PlayerType=Status |
| 216 | +DynamicVariables=1 |
| 217 | +Disabled=1 |
| 218 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 219 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.Status] |
| 220 | +
|
| 221 | +[MS.WNP.State] |
| 222 | +Group=MS.Media | MS.WNP |
| 223 | +Measure=Plugin |
| 224 | +Plugin=WebNowPlaying |
| 225 | +PlayerType=State |
| 226 | +DynamicVariables=1 |
| 227 | +Disabled=1 |
| 228 | +UpdateDivider=(#NowPlaying.MSUpdate#/#UpdateInterval#) |
| 229 | +OnChangeAction=[!UpdateMeasureGroup MS.NP.State] |
0 commit comments