View Full Version : Winamp titles
Ron
October 13th, 2002, 12:55 PM
*moved to developer*
There is currently no plugin that reads the string from a WM_COPYDATA (that is what you are looking for) This would be a very easy plugin to make however, a nice introduction to Girder plugin programming.
Let me know if you want to know more.
MMcM
October 13th, 2002, 12:55 PM
The DVD Spy plug-in creates an invisible window that takes WM_COPYDATA containing an event name and string value and generates the event after setting treg1 to the string. Have a look at the WMP Spy's SpyCtrl for an example user.
MMcM
October 13th, 2002, 12:55 PM
Winamp messages that return strings only work when sent from inside the Winamp process.
MMcM
October 13th, 2002, 12:55 PM
WM_COPYDATA does know how to copy data across process spaces. But sending it copies data from your process to the target (Winamp) process. So, it does not help for codes that read data.
In order to get string data out of Winamp (other than what's in the window title), you need a Winamp plugin (a DLL that runs in its process space).
I have added a Winamp plugin to the DVDSpy package that generates Girder events as the current track title changes (as well as other things like elapsed time). This may do what you want, or serve as a starting point for building it.
TYPO
October 13th, 2002, 12:55 PM
I am last-minute user :smile:
I used serial plugin to take input to girder.
The action selected is for example next-song on winamp.
So every time a serial event occurrs winamp switch song....great!
I also write a simple winamp plug-in that retrieves actual song name.
Now how can i take song name from my winamp plugin?
I think that my winamp plugin should send a message to girder... a girder input plugin should intercept it...set up girder registers (i've just read about it) and then i should use the same serial plugin as output plugin or LCD plugin....
But what kind of message (COPY?) should i use?
Is there a plugin that intercepts this messages?
thnx in advice
TYPO
October 13th, 2002, 12:55 PM
I've downloaded Skeleton Plugin...quite easy to use...but how can i use the message queue into a plugin? do i have to attach manually to main windowproc?
And how can i set up internal registers?
sorry but i'm VERY lazy :wink:
thanks in advice
Ah...great job guy!
<font size=-1>[ This Message was edited by: TYPO on 2001-10-29 11:19 ]</font>
ombre42
October 13th, 2002, 12:55 PM
What's the status on having a WM_COPYDATA input plugin? I've been doing some bugfixing in the Album List plugin and had already thought of doing something like this so one could retrieve Artist/Album Info from Winamp. I saw the nasty disadvantage of using WM_COPYDATA when I tried out GMediaPlayer and told it to play a file that didn't exist. If the target app is not well behaved (copy the data for parsing and return right away), the sending app hangs or at least the thread that sent the message does (in the case of GMediaPlayer Girder freezes).
Why isn't there an alternative to WM_COPYDATA where the target hwnd is responsible for deallocating the global memory chunk. Why be forced to involve DDE or clipboard tricks or anything complicated?
Is it because if the target program crshes without freeing the memory, then we have a nasty memory leak?
Kevin
MpegErnie
October 13th, 2002, 12:55 PM
Isn't there a way to grab the winamp window title? and about getting winamp to save the current playlist and return the current track playing...
it ain't beautiful but could it work?
_________________
I justs love Girder and my remote... and now I wan't lots of OSD menus!!! :smile:
<font size=-1>[ This Message was edited by: MpegErnie on 2002-02-12 14:49 ]</font>
SouthyPar
October 13th, 2002, 12:55 PM
I would also really like to know how I could pull Winamp or Album List names and titles into Girder's text reg values. If I use the sendmessage plugin to send a command to Album List which is supposed to return the current's album artist, it returns only a 7-digits-long number. How do I get the actual text to register in a treg, instead of getting this strange number in a normal numeric reg value?
I have no clue about programming.
Thank you.
SouthyPar
October 13th, 2002, 12:55 PM
On 2002-02-26 05:33, MMcM wrote:
Winamp messages that return strings only work when sent from inside the Winamp process.
IC, but does this apply for WM_COPYDATA messages, as well? For example, on http://www.winamp.com/nsdn/winamp2x/dev/sdk/api.jhtml , near the bottom of the page, there is some details about how to use WM_COPYDATA to get data strings from winamp. Can I use the WM_COPYDATA Girder plugin to do this in Winamp, and if so, how?
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.