View Single Post
Old 10th April 2001, 20:08   #6
Abraxa
Senior Member
 
Join Date: Nov 2000
Location: germany
Posts: 201
Well... then capture the WM_SETTEXT message, since winamp sets its text when a new song is played.

...BUT...

If 'scroll song title in taskbar' is enabled then the message will be sent a couple of times every second. That's not the problem - the problem is that each time the window caption is different
So you can't make a simple string comparion to see whether there is a new title being played...

Regards,
-Søren

PS: I just noticed that the playlist editor notifies winamp when the user wants to play a track using the WM_USER message with wParam being 0x0000029A and lParam containing the ID the track has in the playlist. I think that if you catch the [WM_USER+2 (track ends)], [WM_USER & wParam = 0x29A (new song from playlist)] and [WM_COMMAND & wParam = 40045 (user starts playing by clicking on the PLAY button or pressing the X key)] messages you don't miss any song changes.

[Edited by Abraxa on 04-10-2001 at 04:24 PM]
Abraxa is offline   Reply With Quote