Corvust

Media Control

Jan 18th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Rainmeter]
  2. LeftMouseUpAction=[!CommandMeasure "MeasureMedia" PlayPause]
  3.  
  4. [Variables]
  5. ; Size = Width of Icon
  6. Size=100
  7.  
  8. ; Colour = Colour of Text
  9. Colour=255,255,255
  10.  
  11. [MeasureMedia]
  12. Measure=Plugin
  13.     Plugin=MediaKey
  14.    
  15. [Play]
  16. Meter=Shape
  17.     Shape=Rectangle 0,0,#Size#,#Size# | StrokeWidth 0 | Fill Color 0,0,0,1
  18.     Shape2=Path Triangle | StrokeWidth 0 | Fill Color #Colour#
  19.         Triangle=((#Size#*0.40)+(#Size#*0.45*cos(rad(0)))),((#Size#*0.50)+(#Size#*0.45*sin(rad(0)))) | LineTo ((#Size#*0.40)+(#Size#*0.45*cos(rad(120)))),((#Size#*0.50)+(#Size#*0.45*sin(rad(120)))) | LineTo ((#Size#*0.40)+(#Size#*0.45*cos(rad(240)))),((#Size#*0.50)+(#Size#*0.45*sin(rad(240)))) | ClosePath 1
  20.  
  21. [Pause]
  22. Meter=Shape
  23. x=R
  24.     Shape=Rectangle 0,0,#Size#,#Size# | StrokeWidth 0 | Fill Color 0,0,0,1
  25.     Shape2=Rectangle (#Size#*0.10),(#Size#*0.10),(#Size#*0.80),(#Size#*0.80) | StrokeWidth 0 | Fill Color #Colour#
  26.     Shape3=Rectangle (#Size#*0.35),(#Size#*0.10),(#Size#*0.30),(#Size#*0.80) | StrokeWidth 0
  27.     Shape4=Combine Shape2 | Exclude Shape3
Advertisement
Add Comment
Please, Sign In to add comment