It is currently April 25th, 2024, 5:38 am

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

Tips and Tricks from the Rainmeter Community
User avatar
GhostMatrix
Rainmeter Sage
Posts: 141
Joined: April 18th, 2009, 8:26 pm
Location: Montreal, Quebec, Canada 45.5658°N, 73.5898°W UTC -5

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

Post by GhostMatrix »

Plugin "WindowMessage"
Message Codes for the Media Player
------------------------------------------------------------------------------------------

Image

Windows Media Player 11:
WindowClass=WMPlayerApp


WindowMessage Codes for: !RainmeterPluginBang

Prev: 273 18810 0

Play: 273 18808 0

Stop: 273 18809 0

Next: 273 18811 0

Volume + : 273 18815 0

Volume - : 273 18816 0

Mute : 273 18817 0

Shuffle : 273 18842 0

Repeat : 273 18843 0

Kill WMP (close) : 273 57665 0


If I found more codes I will add it ...


Example:

[Bangs]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=WMPlayerApp

[Meter_Close_WMP]
Meter=BUTTON
ButtonImage=button_name.png
X=0
Y=0
ButtonCommand=!RainmeterPluginBang "Bangs SendMessage 273 57665 0"



===============================================================

------------------------------------------------------------------------------------------

Image

WinAmp:
WindowClass=Winamp v1.x


WindowMessage Codes for: !RainmeterPluginBang

Prev: 273 40044 0

Next: 273 40048 0

Play: 273 40045 0

Pause/Unpause: 273 40046 0

Stop: 273 40047 0

Fadeout and stop : 273 40147 0

Stop after current track : 273 40157 0

Fast-forward 5 seconds : 273 40148 0

Fast-rewind 5 seconds : 273 40144 0

Start of playlist : 273 40154 0

Go to end of playlist : 273 40158 0

Toggle title Autoscrolling : 273 40189 0

Raise volume by 1% : 273 40058 0

Lower volume by 1% : 273 40059 0

Toggle repeat : 273 40022 0

Toggle shuffle : 273 40023 0

Play audio CD : 273 40323 0

Kill WA (close) : 273 40001 0


Example:

[Bangs]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x

[Meter_Close_WA]
Meter=BUTTON
ButtonImage=button_name.png
X=0
Y=0
ButtonCommand=!RainmeterPluginBang "Bangs SendMessage 273 40001 0"


===============================================================

GM
If at first you don't succeed; call it version 0.1

Image
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post by jsmorley »

Nice find! This will help a lot of folks!
sgtevmckay

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

Post by sgtevmckay »

Image
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post by jsmorley »

sgtevmckay wrote:Image
Yeah, what he said! :D
User avatar
GhostMatrix
Rainmeter Sage
Posts: 141
Joined: April 18th, 2009, 8:26 pm
Location: Montreal, Quebec, Canada 45.5658°N, 73.5898°W UTC -5

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

Post by GhostMatrix »

:D

WindowMessage Codes for WinAmp added on the first post.

I have some Codes for the VLC player, but I have to do some test to see if those Codes work ...

GM
If at first you don't succeed; call it version 0.1

Image
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

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

Post by dragonmage »

Thanks GM. I had started messing with the WMP messages, looks like you found more of them than I did.
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

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

Post by Chewtoy »

http://forum.rainmeter.net/viewtopic.php?f=18&t=386#p2281

You didn't have to stretch yourself. :x
I don't think, therefore I'm not.
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

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

Post by dragonmage »

No luck finding one which returns the currently playing song for WMP?
User avatar
JamesAC
Developer
Posts: 318
Joined: July 14th, 2009, 5:57 pm

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

Post by JamesAC »

How did you go about finding these codes??

I would like to find similar for Spotify if it's possible
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
TheAslan
Posts: 87
Joined: June 4th, 2009, 10:41 pm

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

Post by TheAslan »

Is there a Visualization ON/OFF messages to Winamp?

Sorry my bad English...