r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  r1dll / foobar2000 plugins  |  Topic: support for WM_USER, lParam=124||125 in foo_winamp_spam
Pages: [1]
Print
Author Topic: support for WM_USER, lParam=124||125 in foo_winamp_spam  (Read 14459 times)
Byan
Guest
« on: December 15, 2005, 04:15:42 pm »

from the winamp API reference-
Quote
2.3 WM_USER Messages

WM_USER messages are sent using SendMessage(). In C/C++, you can send these messages by calling:

code:

int ret=SendMessage(hwndWinamp,WM_USER, data, id);



data is used by many of the messages, but not all. For messages where the meaning of data is not defined, simply use 0.

Here is a list of the currently supported ids that you can use from within Winamp plug-ins or from other applications (see plug-in only WM_USER messages, below, for more):

Quote
124 Returns length of the current playlist, in tracks.
125 Returns the position in the current playlist, in tracks (requires Winamp 2.05+).

could support WM_USER messages with id 124 and 125 be included in your foo_winamp_spam?
I used Winspector to figure out this is how trillian's plug-in fails, it asks for 124, and if it receives a valid response, it then asks for 125.
If 125 is different, then it knows that the song has changed.
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #1 on: December 15, 2005, 05:12:59 pm »

I'll look into adding this for the next update, whenever that may be.
Logged
Byan
Guest
« Reply #2 on: December 16, 2005, 02:04:17 pm »

you couldn't just quickly add it?
they could just be made up numbers.., as long as 124 is bigger then 125 and 125 is different each time the song changes..

also, I am writing a program that needs to know when a song changes
for the best efficiency and compatablility with your plug-in, what method do you suggest?
Logged
Pages: [1]
Print
r1ch.net  |  r1ch.net stuff  |  r1dll / foobar2000 plugins  |  Topic: support for WM_USER, lParam=124||125 in foo_winamp_spam
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines