![]() |
API + External App - is this possibe?
Hello :). I've been working on using the Winamp API to control Winamp, however I've got a few questions and I'd like to know if they are possible to be done from an external program (read: not a winamp plugin). Thanks for any and all help, and Happy Holiday!
1) Retrieve the song's artist and title of the currently playing song. -or- Retrieving the text in Winamp's scrollbar. 2) Deleting a single item from Winamp's playlist. 3) Playing a file (given the file's path and filename), not enqueueing the file. I think that's it for now. :) Thanks again. |
Quote:
There's a few techinuqes of "dll injection", using which you can load your dll into another process's virtual address space. Anyway, why force your code into winamp process using hack methods if you can write a plugin which will be loaded into Winamp by ordinary way ? you can write a plugin and an external app and organize the data exchange between those by WM_COPYDATA. |
or you just use the readprocessmemory examples as lay around here and there :)
helping eleet where possible on irc -daz |
I said: put bells on the door when people enters the channel <_<
|
1 Attachment(s)
Yes, external communication is possible using Windows messages. I downloaded the API some time ago which separated the messages supported by external programs and internal plugins. I've attached the API.
I came here to see if there was an updated API for external apps, but I can't find anything like what I have attached. Regards, Ross. http://www.station************* |
rlevis: that's the contents of the old page that used to be on nsdn. current stuff is in wa_ipc.h in the sdk
-daz |
Quote:
|
Torsius' help for non-plugin API:
http://forums.winamp.com/showthread....hlight=torsius |
I think winamp search doesnt search for such long strings. I have posted a readprocessmemory example heeya:
http://forums.winamp.com/showthread....hreadid=171990 Otherwise, you can use my plugin ActiveWinamp for some tricky external programming. |
Thanks!:)
|
Using the ActiveWinamp plugin in an external application requires COM and ActiveX programming skills. If you only know how to write straight code lines with simple function calls (a.k.a C style) stick with the ReadProcessMemory Win32 API function. You can also create a thread inside Winamp's process space in order to do the more tricky stuff. You can allocate memory in Winamp's process space using VirtualAllocEx and then writing to it using WriteProcessMemory to pass strings to Winamp.
|
| All times are GMT. The time now is 20:58. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.