Posted by member 299815 on 2006-08-28 00:55:59 link

Like a widget perhaps?
(pretty much, yeah)
The hardest part is knowing what message to send
(Well, we know the sendmessage commands for winamp, itunes, Windows media player, foobar, and a couple others... the source code of a few modules contains the information needed for all but WMP, but that information is in this very forum.)
send them all!
One will respond!
(That's a monkey-with-a-crowbar approach, but I guess it'd work. Or set off a nuclear explosion in Montana... only time will tell.)
You could always require an evar to be set somewhere, or heaven forbid you could make an assumption based upon $AudioPlayer$
(in order for the script to work, yeah... I'd think either having it as a string [ex.!Player_next WMP/Itunes/Foo/Winamp...] or $AudioPlayer$ could work too, but that would require some type of script to sift through the evars and determine which type of player is being used. Come to think of it, I'd say the latter method would be best. Not to mention idiot-proof; as long as $audioplayer$ was designated correctly[meaning the executable is using it's original name], it wouldn't require any work to universally install it on any theme using LUA. PLUS it'd be extensible, for future upgrades.
That's one issue with the current module system, only a select few have the knowhow [or the software] to make it work properly. With LUA we bring it into reach of anyone with a text editor and a little time.)
come to think of it, both options together would be best. A little more hairy to code, however.