It is currently October 13th, 2024, 12:21 am

How to run Windows Media Player from the Neonspace/AudioPlayer skin?

General topics related to Rainmeter.
kharon00
Posts: 2
Joined: September 20th, 2024, 1:08 am

How to run Windows Media Player from the Neonspace/AudioPlayer skin?

Post by kharon00 »

Currently, I don't know how to add an MP3 playlist to this interface for it to work. Or how I can edit this interface to play the music playlist on my computer using Windows Media Player? Can anyone help me? I am a beginner, and this is my first time using Rainmeter. I'm not sure if I'm using the correct terminology. I would like to post the code in Notepad. If you need any more information, please let me know. Thank you very much. I'm sorry, my English is not very good. I have to use Google Translate.

Code: Select all

[Rainmeter]
Author=99villages
Update=50

[Metadata]
Name=PlayerName



[Variables]
@Include=#ROOTCONFIGPATH#\@Resources\Variables.inc
@Include2=#ROOTCONFIGPATH#\@Resources\Styles.inc
@Include3=#ROOTCONFIGPATH#\@Resources\Links.inc
@Include4=#ROOTCONFIGPATH#\@Resources\Languages\#Language#.inc

Color1=#UniPrime#
Color2=#UniSec#
Color3=#Uni3D#
AlphaDull=180
AlphaBright=255
ColorHighlight=adc6c8
PanelWidth=300
ArtSize=80
InfoX=242
ButtonX=124
ButtonY=171


;--------------------------------------BGs

[MeterplayerBG]
Meter=Image
ImageName=#@#Images/AudioPlayer/MusicplayerS.png
ImageTint=#Color1#
X=0
Y=23
UpdateDivider=-1

;----------------------------------------Disk

[MeterDisk]
Meter=rotator
MeasureName=MeasureRotate
ImageName=#@#Images/AudioPlayer/DiskS.png
ImageTint=#Color1#
OffsetX=43.5
OffsetY=43.5
x=274
y=97


[MeasureRotate]
Measure=Calc
Formula=(MeasureRotate % 360) + 5
MaxValue=360
;-----------------------------Style

[sText]
FontSize=8
FontFace=#Font6#
FontColor=#color2#
StringStyle=BOLD
AntiAlias=1
W=160
H=16
Clipstring=1



;-------------------------------------------------measures-------------

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#MusicPlayer#
PlayerType=TITLE
DynamicVariables=1
PlayerPath=
DisableLeadingZero=1
Substitute="":"Track" 

[mPlayerState]
Measure=PLUGIN
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE

[mArtist]
Measure=PLUGIN
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ARTIST
Group=mPlayer
Substitute="":"Artist" 

[mAlbum]
Measure=PLUGIN
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ALBUM
Group=mPlayer

[mYear]
Measure=PLUGIN
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=Year
Group=mPlayer



[mStateButton]
Measure=PLUGIN
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE
Substitute="0":"PlayS.png","1":"PauseS.png","2":"PlayS.png"
Group=mPlayer

[mPosition]
Measure=PLUGIN
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=POSITION
Group=mPlayer

[mDuration]
Measure=PLUGIN
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=DURATION
Group=mPlayer

[mPosition]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[mPlayer]
PlayerType=Position
IfCondition=mPosition < 1
IfTrueAction=[!SetOption MtPrevious LeftMouseUpAction """[!CommandMeasure mPlayer "Previous"]"""]
IfFalseAction=[!SetOption MtPrevious LeftMouseUpAction """[!CommandMeasure mPlayer "SetPosition 0"]"""]
Group=mPlayer

[mSmoothProgress]
Measure=SCRIPT
ScriptFile=#@#Scripts\SmoothProgress.lua
UpdatePeriod=10000
ResetInterval=10
SafetyRange=2
Adjustment=1

;--------------------------Meters



  
[MtTrack]
Meter=STRING
MeasureName=mPlayer
MeterStyle=sText
InlineSetting=GradientColor | 180 | #Color2# ; 0.0 | #color1# ; 1.0
DynamicVariables=1
StringAlign=Right
FontSize=8
X=190
Y=92
Hidden=#Others#
  
[MtArtist]
Meter=STRING
MeasureName=mArtist
MeterStyle=sText
FontSize=6
W=55
H=10
Clipstring=1
StringAlign=Left
X=145
Y=17r
Hidden=#Others#

[MtArtistName]
Meter=STRING
MeasureName=mArtist
FontColor=#Color1#
MeterStyle=sText
FontSize=7
StringAlign=Left
Text=#Artist#
X=28
Y=-1r

  
[MtPlayed]
Meter=String
MeasureName=mPosition
MeterStyle=sText
StringAlign=Center
FontSize=8
X=108
Y=5r
W=34
Hidden=#Others#



[MtProgressBar]
Meter=Bar
BarOrientation=HORIZONTAL
BarImage=#@#Images/AudioPlayer/BarS.png
MeasureName=mSmoothProgress
ImageTint=#Color1#,255
X=25
Y=78
Hidden=#Others#

  
[MtPostion]
Meter=Image
X=r
Y=r
ImageName=#@#Images/AudioPlayer/BarS.png
ImageTint=#Color1#,65
ToolTipText="click to set position"
LeftMouseUpAction=[!CommandMeasure "mPlayer" "SetPosition $MouseX:%$"] 
Hidden=#Others#


;----------------------Bottons


[MtPrevious]
Meter=IMAGE
ImageName=#@#Images/AudioPlayer/PreviousS.png
ImageTint=#color2#
x=212
y=86
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageTint #color1#] [!Update] [!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" ImageTint #color2#] [!Update] [!Redraw]
LeftMouseUpAction=[!CommandMeasure "mPlayer" "Previous"]
Hidden=#Others#

[PauseOrPlay]
Meter=IMAGE
ImageName=#@#Images/AudioPlayer/[mStateButton]
ImageTint=#color2#
x=267
y=r
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageTint #color1#] [!Update] [!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" ImageTint #color2#] [!Update] [!Redraw]
LeftMouseUpAction=[!CommandMeasure "mPlayer" "PlayPause"]
DynamicVariables=1
Hidden=#Others#
  
[Next]
Meter=IMAGE
ImageName=#@#Images/AudioPlayer/NextS.png
ImageTint=#color2#
x=316
y=r
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageTint #color1#] [!Update] [!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" ImageTint #color2#] [!Update] [!Redraw]
LeftMouseUpAction=!CommandMeasure "mPlayer" "Next"
Hidden=#Others#
  

;---------------------------------------------Vis----------------------


[MeasureAudio]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=50
RMSDecay=50
RMSGain=2.7

[MeasureL]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudio
Type=RMS



[Meter1]
Meter=BitMap
MeasureName=MeasureL
X=305
Y=5
ImageTint=#color1#
BitMapImage=#@#Images\AudioPlayer\speak1S.png
BitMapFrames=8
BitmapZeroFrame=1


[Meter2]
Meter=BitMap
MeasureName=MeasureL
X=r
Y=r
ImageTint=#color2#
BitMapImage=#@#Images\AudioPlayer\speak2S.png
BitMapFrames=8
BitmapZeroFrame=1




;---------------------------------------Spotify

[MeasureTrack]
Measure=Plugin
Plugin=SpotifyPlugin
Type=TrackName
Substitute="":"Track"

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin
Type=ArtistName
Substitute="":"Artist"

[MeasureNowPlaying]
Measure=Plugin
Plugin=NowPlaying
Playername=Spotify
PlayerType=State

[MeasureButtonState]
Measure=Plugin
Plugin=SpotifyPlugin
Type=Playing
Substitute="0":"PlayS.png","1":"PauseS.png","2":"PlayS.png"

[MeasurePosition]
Measure=Plugin
Plugin=SpotifyPlugin
Type=Position



[MeasureProgress]
Measure=Plugin
Plugin=SpotifyPlugin
Type=Progress
AverageSize=8

[MeterTrack]
Meter=String
MeasureName=MeasureTrack
MeterStyle=sText
Text="%1"
FontSize=8
X=190
Y=92
stringAlign=Right
FontColor=#color1#
InlineSetting=GradientColor | 180 | #Color2# ; 0.0 | #color1# ; 1.0
ClipString=1
AntiAlias=1
Hidden=#Spotify#

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
MeterStyle=sText
FontSize=6
W=55
H=10
Clipstring=1
StringAlign=Left
X=145
Y=17r
AntiAlias=1
ClipString=1
Hidden=#Spotify#



[MeterPlayorPause]
Group=PlayButton
Meter=Image
ImageName=#@#Images/AudioPlayer/[MeasureButtonState]
ImageTint=#color2#
x=267
y=86
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "PlayPause"]
DynamicVariables=1
Hidden=#Spotify#

[MeterNext]
Meter=Image
ImageName=#@#Images/AudioPlayer/NextS.png
ImageTint=#color2#
x=316
y=r
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "Next"]
AntiAlias=1
Hidden=#Spotify#

[MeterPrevious]
Meter=Image
ImageName=#@#Images/AudioPlayer/PreviousS.png
ImageTint=#color2#
x=212
y=r
LeftMouseUpAction=[!CommandMeasure MeasureNowPlaying "Previous"]
AntiAlias=1
Hidden=#Spotify#

[MeterProgress]
Meter=Bar
BarImage=#@#Images/AudioPlayer/BarS.png
MeasureName=MeasureProgress
ImageTint=#Color1#,255
X=25
Y=78
DynamicVariables=1
BarOrientation=Horizontal
Hidden=#Spotify#


[MeterProgressBG]
Meter=Image
X=r
Y=r
ImageName=#@#Images/AudioPlayer/BarS.png
ImageTint=#Color1#,65
Hidden=#Spotify#

[MeterPosition]
Meter=STRING
MeasureName=MeasurePosition
FontColor=#Color2#,255
MeterStyle=sText
StringAlign=Center
FontSize=8
X=108
Y=113
AntiAlias=1
ClipString=1
Text="%1"
Hidden=#Spotify#

User avatar
eclectic-tech
Rainmeter Sage
Posts: 5540
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: How to run Windows Media Player from the Neonspace/AudioPlayer skin?

Post by eclectic-tech »

That package makes you pay for upgraded skins and is not in the spirit of Rainmeter.

Most members will not be familiar with, or have installed that commercialized package.

The skin author can answer that.
Ask them on DevArt
kharon00
Posts: 2
Joined: September 20th, 2024, 1:08 am

Re: How to run Windows Media Player from the Neonspace/AudioPlayer skin?

Post by kharon00 »

Thanks. I will look into it further.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5540
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: How to run Windows Media Player from the Neonspace/AudioPlayer skin?

Post by eclectic-tech »

Hope you get a solution.
Sorry I couldn't help more... :rosegift:
User avatar
Yincognito
Rainmeter Sage
Posts: 8441
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to run Windows Media Player from the Neonspace/AudioPlayer skin?

Post by Yincognito »

kharon00 wrote: September 20th, 2024, 1:50 am Currently, I don't know how to add an MP3 playlist to this interface for it to work. Or how I can edit this interface to play the music playlist on my computer using Windows Media Player?
Although I did use Windows Media Player for videos in the past, I am currently a long time user of Winamp for audios and PotPlayer for videos, so I'm not familiar with the playlist format used by WMP. That being said, if I understood what you meant properly, to open / play an MP3 playlist of any kind, you could use the Windows' file association system and just "run" the playlist file on some mouse action or something (after that, you could probably control which of the previous, current or next tracks to play from your skins, based on the shuffle and repeat settings in the player).

For example, left clicking on the meter from the below sample skin opens and starts playing my Winamp playlist:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1

[SomeMeter]
Meter=String
SolidColor=0,255,0,255
AntiAlias=1
Text=Open Winamp Playlist
LeftMouseUpAction=["F:\Audios\Music\- Single -\Music.m3u8"]
DynamicVariables=1
The key is what's in the LeftMouseUpAction option from the meter, which is basically the path to the playlist enclosed between quotes. Obviously, whatever playlist extension you "run" there should be associated with your WMP, but I believe this is by default since it's a MS program.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth