I've been using AveScripter with bundeled iTunes script for a while.
As you may know I'm developping my own media player.
I want to retrive the current song, but it doesn't think I'm able to create an com interface like iTunes one. (If someone can help me, I use my own toolkit dll done in Visual Studio C++ 2005 (Express edition) so I can do anything that can be done in C)
So i have an plugin system with 3 possibilities.
1/ Request from NL Window (custom class name) to send artist, song and album (NL will not reply anything to the original SendMessage, but the plugin will have to wait for the update messages to come) as pointers to ASCII strings. (SendMessage, pointer : lParam)
2/ Request from NL Window to send an struct with song info (Same as upper, you will have to wait for NL to answer you) still as a pointer, but this time pointer is wParam, lParam is the size so you can use mem transfert.
3/ The title of NL Window (the one hidden for plugins) is the path to an XML file that is currently formatted like that :
<CurrentSong> <title>Sample Title</title> <artist>Sample Artist</artist> <album>Sample Album</album> </CurrentSong>(More info to come)
Finally, there are two messages (messages are code that you pass as wParam, you must retrive the numer with RegisterWindowMessage) that can request from NL the total duration of the song (as HH:MM:SS format) and request the eplased time (same format). This time you will need to get the SendMessage result.
So it seems that I'm too dumb to get AveScripter to retrive the XML file, (xmls.new example is wrong in the doc) and I don't know if AveScripter returns the result of SendMessage.
So here is my question :
Is there a way for AveScripter to retrive an ASCII string (or UNICODE, i'll add functions for that later) from an pointer ?








Sign In »
Register Now!
Help

MultiQuote