Advertisement
Corvust

Monstercat Visualiser Smart Switch

Jun 14th, 2018
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Rainmeter]
  2. DefaultUpdateDivider=10
  3.  
  4. [Variables]
  5. MusicPlayerName=AIMP
  6.  
  7. [PlaceHolder]
  8. meter=string
  9. updatedivider=-1
  10.  
  11. ; =====================================================================
  12.  
  13. ; [Calc_NPSwitch]
  14.     ; Changes between the local music player and the web player dynamically.
  15.  
  16. ; =====================================================================
  17.  
  18. [Calc_NPSwitch]
  19. Measure=Calc
  20. Formula=(((Measure_NPFileStatus0<>1) && (Measure_NPPlayerStatus1=1)) ? 1 : 0)
  21. IfCondition=Calc_NPSwitch=0
  22. IfTrueAction=[!WriteKeyValue Variables PlayerName AIMP "#@#variables.ini"][!WriteKeyValue Variables MPMode NowPlaying "#@#variables.ini"][!RefreshGroup "Spectrum"][!RefreshGroup "SongInfo"][!Redraw]
  23. IfFalseAction=[!WriteKeyValue Variables PlayerName Web "#@#variables.ini"][!WriteKeyValue Variables MPMode Web "#@#variables.ini"][!RefreshGroup "Spectrum"][!RefreshGroup "SongInfo"][!Redraw]
  24.  
  25. ; 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))
  26. ; then set player to 1 (Use Web Player)
  27. ; else set player to 0 (Use Music Player)
  28.  
  29.  ; =====================================================================
  30.  
  31. ; [Measure_NPPlayerStatus] & [Measure_NPPlayerStatus1]
  32.     ; Returns the Player Status of the current song.
  33.  
  34. ; =====================================================================
  35.  
  36. [Measure_NPPlayerStatus0]
  37. Measure=NowPlaying
  38. PlayerName=#MusicPlayerName#
  39. PlayerType=Status
  40.  
  41. ; Substitute= "0":"Close","1":"Open"
  42.  
  43. [Measure_NPPlayerStatus1]
  44. Measure=Plugin
  45. Plugin=WebNowPlaying
  46. PlayerType=Status
  47.  
  48. ; Substitute="0":"Close","1":"Open"
  49.  
  50. ; =====================================================================
  51.  
  52. ; [Measure_NPFileStatus0] & [Measure_NPFileStatus1]
  53.     ; Returns the File Status of the current song.
  54.  
  55. ; =====================================================================
  56.  
  57. [Measure_NPFileStatus0]
  58. Measure=NowPlaying
  59. PlayerName=#MusicPlayerName#
  60. PlayerType=State
  61. ; Substitute= "0":"Stopped","1":"Playing","2":"Paused"
  62.  
  63. [Measure_NPFileStatus1]
  64. Measure=Plugin
  65. Plugin=WebNowPlaying
  66. PlayerType=State
  67. ; Substitute="0":"play","1":"pause","2":"play","3":"replay"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement