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

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

Tips and Tricks from the Rainmeter Community
User avatar
GhostMatrix
Rainmeter Sage
Posts: 142
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.

GhostMatrix » July 8th, 2009, 5:37 pm

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: 19710
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

jsmorley » July 8th, 2009, 5:48 pm

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

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

sgtevmckay » July 8th, 2009, 6:36 pm

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

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

jsmorley » July 8th, 2009, 6:45 pm

sgtevmckay wrote:Image
Yeah, what he said! :D
User avatar
GhostMatrix
Rainmeter Sage
Posts: 142
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.

GhostMatrix » July 8th, 2009, 11:30 pm

: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: 1286
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

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

dragonmage » July 9th, 2009, 2:44 am

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: 1010
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

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

Chewtoy » July 9th, 2009, 11:41 am

I don't think, therefore I'm not.
dragonmage
Developer
Posts: 1286
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

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

dragonmage » July 9th, 2009, 4:00 pm

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

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

JamesAC » July 16th, 2009, 11:01 am

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: 89
Joined: June 4th, 2009, 10:41 pm

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

TheAslan » August 29th, 2009, 9:14 pm

Is there a Visualization ON/OFF messages to Winamp?

Sorry my bad English...