Page 1 of 2

AIMP and rainmeter

Posted: February 17th, 2017, 4:02 am
by deXxterlab97
Need help. So I want to create a new music player skin.
So far only progress bar/time bar is done.
Title and artist doesn't get detected. So I thought because I am new and don't know how to use things properly
So I copied the code from NowPlaying https://docs.rainmeter.net/manual/plugins/nowplaying/
And it did not detect it too.

What is the latest AIMP version that fully support Rainmeter, willing to downgrade. Using 4.11 so far or should I upgrade?
Or is there some sort of plugin to work around? I am new to Rainmeter btw

My code just in case

Code: Select all

[Rainmeter]
Update=1000

[Variables]
FontName=Ubuntu
FontColor=255,255,255,240
FontSize=11
Player=AIMP


[MeasureSong]
Measure=Plugin
Plugin=NowPlaying
Playername=#Player#
PlayerType=Progress

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
Playername=#Player#
PlayerType=Artist

[MeasureSongName]
Measure=Plugin
Plugin=NowPlaying
Playername=#Player#
PlayerType=Title

[MeasureCurrent]
Measure=Plugin
Plugin=NowPlaying
Playername=#Player#
PlayerType=Position

[MeasureTotal]
Measure=Plugin
Plugin=NowPlaying
Playername=#Player#
PlayerType=Duration

[Bar Background]
Meter=Image
X=-15
Y=30
H=3
W=285
SolidColor=255,255,255,60

[MeterBar]
Meter=BAR
MeasureName=MeasureSong
X=-15
Y=30
H=3
W=285
BarColor=255,255,255,240
BarOrientation=Horizontal

[TitleText]
Meter=STRING
MeasureName=MeasureSongName
X=0
Y=5
Text="%1"
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
StringAlign=right

[MeterTime]
Meter=STRING
MeasureName=MeasureCurrent
MeasureName2=MeasureTotal
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
StringAlign=right
Text="%1 / %2"
X=263
Y=37


[ArtistText]
Meter=STRING
MeasureName=MeasureArtist
X=0
Y=37
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
StringAlign=right

Re: AIMP and rainmeter

Posted: February 17th, 2017, 5:41 am
by CyberTheWorm
Done a few skins and they are all working with V4.12 build 1880. This is the link to a stand alone player I did, take a look at the code to see if it can help you. https://forum.rainmeter.net/viewtopic.php?f=27&t=25078

Re: AIMP and rainmeter

Posted: February 17th, 2017, 10:08 am
by fonpaolo
Not to offend you, however, I don't believe you've really copied the code from the NowPlaying page... ;-)

It's better to use one measure pointing to the player, usually the first (because Rainmeter reads the code as it's written).
So, you have:

Code: Select all

[MeasureSong]
Measure=Plugin
Plugin=NowPlaying
Playername=#Player#
PlayerType=PROGRESS
Then, the other measures point at the first:

Code: Select all

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=ARTIST

[MeasureSongName]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=TITLE

[MeasureCurrent]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=POSITION

[MeasureTotal]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=DURATION

Re: AIMP and rainmeter

Posted: February 17th, 2017, 3:45 pm
by balala
fonpaolo wrote:Not to offend you, however, I don't believe you've really copied the code from the NowPlaying page... ;-)

It's better to use one measure pointing to the player, usually the first (because Rainmeter reads the code as it's written).
So, you have:

Code: Select all

[MeasureSong]
Measure=Plugin
Plugin=NowPlaying
Playername=#Player#
PlayerType=PROGRESS
Then, the other measures point at the first:

Code: Select all

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=ARTIST

[MeasureSongName]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=TITLE

[MeasureCurrent]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=POSITION

[MeasureTotal]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=DURATION
Is true fonpaolo, that the code doesn't look like it would be copied from the indicated page and indeed this is not the good approach to use the NowPlaying plugin, however, not this is the reason why the skin is not working, because even the code posted by deXxterlab97 is working, with this non parent-child measure structure. Although I can't say what is (I'm not using AIMP), I think something else is the issue.

Re: AIMP and rainmeter

Posted: February 17th, 2017, 4:11 pm
by deXxterlab97
CyberTheWorm wrote:Done a few skins and they are all working with V4.12 build 1880. This is the link to a stand alone player I did, take a look at the code to see if it can help you. https://forum.rainmeter.net/viewtopic.php?f=27&t=25078
Thanks I will take a look

Re: AIMP and rainmeter

Posted: February 17th, 2017, 4:12 pm
by deXxterlab97
fonpaolo wrote:Not to offend you, however, I don't believe you've really copied the code from the NowPlaying page... ;-)

It's better to use one measure pointing to the player, usually the first (because Rainmeter reads the code as it's written).
So, you have:

Code: Select all

[MeasureSong]
Measure=Plugin
Plugin=NowPlaying
Playername=#Player#
PlayerType=PROGRESS
Then, the other measures point at the first:

Code: Select all

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=ARTIST

[MeasureSongName]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=TITLE

[MeasureCurrent]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=POSITION

[MeasureTotal]
Measure=Plugin
Plugin=NowPlaying
Playername=[MeasureSong]
PlayerType=DURATION
I will take a look thanks

Re: AIMP and rainmeter

Posted: February 17th, 2017, 4:24 pm
by deXxterlab97
Got it working guys, no idea why it doesn't work if I measure it separately

Code: Select all

[Rainmeter]
Author=mistrjosh
Update=1000

[Variables]
FontFace=Ubuntu
FontColor=255,255,255,240
FontSize=11

[mPlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=AIMP
PlayerType=TITLE

[mProgress]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[mPlayer]
PlayerType=PROGRESS

[mPosition]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[mPlayer]
PlayerType=POSITION

[mLength]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[mPlayer]
PlayerType=DURATION


[mArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[mPlayer]
PlayerType=ARTIST

[Bar Background]
Meter=Image
X=-15
Y=30
H=3
W=285
SolidColor=255,255,255,60

[MeterBar]
Meter=Bar
MeasureName=mProgress
X=-15
Y=30
H=3
W=285
BarColor=255,255,255,240
BarOrientation=Horizontal

[TextTrack]
Meter=STRING
MeasureName=mPlayer
X=0
Y=5
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
DynamicVariables=1
ClipString=1

[MeterTime]
Meter=STRING
MeasureName=mPosition
MeasureName2=mLength
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
StringAlign=right
Text="%1 / %2"
X=263
Y=37

[ArtistText]
Meter=STRING
MeasureName=mArtist
X=0
Y=37
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
ClipString=1
DynamicVariables=1

Re: AIMP and rainmeter

Posted: February 17th, 2017, 5:01 pm
by balala
deXxterlab97 wrote:Got it working guys, no idea why it doesn't work if I measure it separately
Please check if you're running Rainmeter as administrator. Because a while ago we've discovered that the NowPlaying plugin refuses to work with WMP, when Rainmeter is ran as administrator. Maybe some similar issue with AIMP too, if it's ran as administrator?
So deXxterlab97, are you running Rainmeter as administrator?

Re: AIMP and rainmeter

Posted: February 19th, 2017, 3:40 am
by deXxterlab97
balala wrote:Please check if you're running Rainmeter as administrator. Because a while ago we've discovered that the NowPlaying plugin refuses to work with WMP, when Rainmeter is ran as administrator. Maybe some similar issue with AIMP too, if it's ran as administrator?
So deXxterlab97, are you running Rainmeter as administrator?
I don't think so. How do I check? It auto startup with Windows but no where to be seen under Task Scheduler. Regardless everything works now

Re: AIMP and rainmeter

Posted: February 19th, 2017, 10:13 am
by balala
deXxterlab97 wrote:I don't think so. How do I check? It auto startup with Windows but no where to be seen under Task Scheduler. Regardless everything works now
In this case, it probably was started normally. I just had that idea about a possible startup in administrator mode, because a few days ago we had here on the forum a such discussion and we've discovered that the NowPlaying plugin doesn't work with WMP, if Rainmeter is started as administrator.
But finally if everything is working well now, I think the issue is fixed, right?