It is currently November 15th, 2019, 3:58 am

Plugin "WindowMessage": Message Codes for the Media Players.

Tips and Tricks from the Rainmeter Community
Starfox444
Posts: 5
Joined: December 17th, 2009, 11:52 am

Re: Plugin "WindowMessage": Message Codes for the Media Players.

Starfox444 » April 9th, 2010, 1:33 pm

I have a question I would like answered.
Is it possible to display artist and song title separately and if so, how would I be able to do it?
Thanks in advance.
User avatar
Chewtoy
Moderator
Posts: 1010
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Plugin "WindowMessage": Message Codes for the Media Players.

Chewtoy » April 9th, 2010, 1:39 pm

Well what player do you use? WindowMessage.dll is just a plugin to send commands to windows.
I don't think, therefore I'm not.
Starfox444
Posts: 5
Joined: December 17th, 2009, 11:52 am

Re: Plugin "WindowMessage": Message Codes for the Media Players.

Starfox444 » April 9th, 2010, 4:11 pm

Chewtoy wrote:Well what player do you use? WindowMessage.dll is just a plugin to send commands to windows.
My apologies, I forgot the most important information!
I use Winamp.
User avatar
Chewtoy
Moderator
Posts: 1010
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Plugin "WindowMessage": Message Codes for the Media Players.

Chewtoy » April 9th, 2010, 10:33 pm

I don't think you will be able to do it with WindowsMessage plugin, but I'm sort of confident that you would be able to do it. I use foobar2000 myself so I'm not all that informed about winamps possibilites. But even here I'm confident that others know how to do it.

A tip is to take a look at winamps homepage (/ their forums) and see if you find a plugin that can be used in winamp that lets you draw info and get it in a simple matter.
For instance, in foobar2000 we got httpcontrol that lets us parse all the info we want with webparser. Pretty handy.
Ought to be something like it for winamp.
I don't think, therefore I'm not.
User avatar
Xenophob
Posts: 1
Joined: April 25th, 2010, 7:17 pm

Re: Plugin "WindowMessage": Message Codes for the Media Players.

Xenophob » April 25th, 2010, 7:24 pm

Hey GM thanks for the upload. I just had one question. I noticed that you gave the command for toggling the auto scrolling of the title. I want to do that with Winamp Circles. For some reason it doesn't seem to work. I am guessing it has to do with the code used to display the title and not with the autoscrolling code. You think you help me?

Here is the code that I think is the problem.

Code: Select all

[l.hraje]
Hidden=10
Meter=STRING
MeasureName=mWA
X=195
Y=130
W=100
H=10
StringStyle=NORMAL
StringAlign=LEFT
FontColor=231,207,171,200
FontSize=#FontHeight#
FontFace=#FontName#
AntiAlias=1
And here is the code that I am trying to use to get the auto scrolling to work

Code: Select all

[Label]
Meter=String
X=230
Y=155
W=100
H=5
StringStyle=Normal
StiringAlign=Left
FontColor=255,255,255,150
FontHeight=4
FontFace=Ariel
Text=Winamp Circles
AntiAlias=1
LeftMouseDownAction=!execute [!RainmeterPluginBang "mWA SendMessage 273 40189 0"]
Oh and here is the start code

Code: Select all

[mWA]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
Substitute="[Paused]":""," - Winamp":"","[Stopped]":""
Don't know if you needed all that. Let me know if you need anything else. Thanks for all the help.

~Xenophob
User avatar
StArL0rd84
Posts: 336
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: Plugin "WindowMessage": Message Codes for the Media Players.

StArL0rd84 » April 7th, 2016, 5:24 pm

GhostMatrix wrote: I have some Codes for the VLC player, but I have to do some test to see if those Codes work ...
Could you post them please?
Cannot find them anywhere

Since Nowplaying and libcad_plugin does not work anymore, i thought is should try the WindowMessage plugin.
I think VLC is being updated more often that the plugins.

So i used the Mediakey plugin for the buttons, but i still need a progress bar...

On the WindowMessage plugin manual page there is a winamp example.
I wonder if that could be converted into a VLC progress bar.

Code: Select all

[MeasureWinampCurr]
Measure=Plugin
Plugin=WindowMessagePlugin
WindowClass=Winamp v1.x
WindowMessage=1024 0 105

[MeasureWinampDuration]
Measure=Calc
Formula=(MeasureWinampCurr<=0)?0:(MeasureWinampCurr/(MeasureWinampFull*1000+1))
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))