Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Rainmeter]
- DefaultUpdateDivider=10
- [Variables]
- MusicPlayerName=AIMP
- [PlaceHolder]
- meter=string
- updatedivider=-1
- ; =====================================================================
- ; [Calc_NPSwitch]
- ; Changes between the local music player and the web player dynamically.
- ; =====================================================================
- [Calc_NPSwitch]
- Measure=Calc
- Formula=(((Measure_NPFileStatus0<>1) && (Measure_NPPlayerStatus1=1)) ? 1 : 0)
- IfCondition=Calc_NPSwitch=0
- IfTrueAction=[!WriteKeyValue Variables PlayerName AIMP "#@#variables.ini"][!WriteKeyValue Variables MPMode NowPlaying "#@#variables.ini"][!RefreshGroup "Spectrum"][!RefreshGroup "SongInfo"][!Redraw]
- IfFalseAction=[!WriteKeyValue Variables PlayerName Web "#@#variables.ini"][!WriteKeyValue Variables MPMode Web "#@#variables.ini"][!RefreshGroup "Spectrum"][!RefreshGroup "SongInfo"][!Redraw]
- ; If Music Player is not playing AND Web Player is open (Local Player's File status is not 1 (playing) AND Web Player's Player status is 1 (Open))
- ; then set player to 1 (Use Web Player)
- ; else set player to 0 (Use Music Player)
- ; =====================================================================
- ; [Measure_NPPlayerStatus] & [Measure_NPPlayerStatus1]
- ; Returns the Player Status of the current song.
- ; =====================================================================
- [Measure_NPPlayerStatus0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=Status
- ; Substitute= "0":"Close","1":"Open"
- [Measure_NPPlayerStatus1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=Status
- ; Substitute="0":"Close","1":"Open"
- ; =====================================================================
- ; [Measure_NPFileStatus0] & [Measure_NPFileStatus1]
- ; Returns the File Status of the current song.
- ; =====================================================================
- [Measure_NPFileStatus0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=State
- ; Substitute= "0":"Stopped","1":"Playing","2":"Paused"
- [Measure_NPFileStatus1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=State
- ; Substitute="0":"play","1":"pause","2":"play","3":"replay"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement