|
|
#1 |
|
Junior Member
Join Date: Oct 2009
Posts: 11
|
changing playlist using sendmessage commands
Is it possible to use sendmessage commands to index through available playlists and/or smartlists? If necessary, a combination of sendmessage strings can be utilized.
Background: I'm setting up an audio zoning system and would like to be able to scroll through smartlists from remotely located keypads. The keypads would send IR signals to USBUIRT device attached to HTPC. From the HTPC, Proximis / Girder software will intercept IR and send out custom sendmessage strings to the specific instance of Winamp that is targeted. Any help would be greatly appreciated. Thanks! |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Aug 2008
Posts: 114
|
there are some IPC_* in wa_ipc.h for getting playlist name/title/file by index. They are in proc though
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2009
Posts: 11
|
Thanks for the reply... I've not used any code solutions before though. Would the scripts run from within winamp and allow me to tie an external trigger to them? thanks!
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Aug 2008
Posts: 114
|
I have never triggered IPC_* message through exported function of a plugin linked to an external application but by convention it is possible.
|
|
|
|
|
|
#5 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,272
|
there are also playlist api's in ipc_pe.h which gives a bit more control over what is shown in wa_ipc.h though for accessing the 'smartlsts' and media library playlists it is generally something that is best done through a true plugin rather than some SendMessage(..) calls to Winamp (due to accessing of strings from the Winamp process). this is able to be worked around (via ReadProcessMemory(..) methods) but i'm not sure that'd be reliable enough for the ml playlists, etc for the level that i guess you're working towards.
the other way is to have a plugin which interacts with your system and can do the required access/manipulation through a SendMessage(..) based api from controller to Winamp+plugin combination. there should be enough information in the 5.55 sdk examples to get going with accessing the media library playlist data (think it'll require Wasabi dependances) and the 'smartlist' (i'd assume you're refering to the media library query views) are in ml.h in one of the query options/sdk examples. -daz |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Oct 2009
Posts: 11
|
Thanks for jumping in... I can see though that I've got a long road ahead.
I reviewed the latest sdk and specifically the ipc's that you referrenced. I don't see a direct path to navigating through an unspecified list of playlists. Since there doesn't appear to be a direct means of navigation, would a process such as the one that I outline below be possible? What's you opinion on this approach? Concept: Index through playlists (and hopefully smartlists) using forward/previous buttons managed by an external application (girder). Playlist: All playlists (and smartlists if possible) will be saved into a specific - "c:\music\kids" directory. 1. Forward button pressed. 2. Via sendmessage command, Girder triggers a "playlist forward" function inside winamp. 3. "Playlist forward" function polls the "c:\music\kids" directory for playlist files and imports into a variable 4. The function retrieves the active playlist from winamp 5. The active playlist is compared to the list of available playlists to find an index location. 6. The following playlist alphabetically is identified. 7. The function clears the active playlist (except maybe for the current sond) and imports the new playlist. 8. The playlist is radomized and the function ends. A similar method would be used for the Previous button. I'm having trouble reading through the sdk and translating them into real world examples. I went through the plugin development wiki and even created my own dll, but I still am having trouble with the overall big picture of how to use an external app to hook into one of the many scripts in the sdk... Also the scripts in the sdk are for the most part h files, do they need to be individually compiled and converted to dlls to work with winamp? |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Oct 2009
Posts: 11
|
After working with the plugin developer wiki, I tried moving onto something closer to my objective, but I'm having trouble with compile errors (see below). If I change plugin.hwndLibraryParent to plugin.hwndParent, I can get it to compile and run, but it returns 0 for the number of smartlists...
I'm think that I've made a mistake trying to use the ml files in a general purpose plugin, but I'm really talking out my rear .code: code: |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Oct 2009
Posts: 11
|
Looks like I'm way off. Any chance anyone can point me to a good example of a Media Library Plugin that I could try to work through or maybe walk me through how to actually implement this code to output a list of playlists or smartlists? Thanks!
code: Last edited by jryan15; 15th October 2009 at 05:08. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|