hey,
here is the situation
i would like have an event (cat refresh) when the track change in winamp
is it possible to have an event in relation with tracks changes in winamp...
...
while (true)
{
if (helper != null) // xlobby plugin helper
{
string artist = helper.ConvertVariables(@"audioplayer>now>%artist%");
string track = helper.ConvertVariables(@"audioplayer>now>%trackname%");
string album = helper.ConvertVariables(@"audioplayer>now>%albumname%");
if (artist != string.Empty && track != string.Empty && album != string.Empty)
{
// do somthing
}
else
{
// don't do something
}
}
Thread.Sleep(5000); // thread is created on plugin constructor
}
Xlobby.SendCommand("category", "refresh", "<the name of your cat>"); // err... not your cat so to speak but the category name :shock:
defrag wrote:BTW, did you, in your dark couldren of xlobby code, ever manage to track a when the selection changes in a category? That one I have not been able to nail...
defrag wrote:ok - I think we spoke about this before, didn't think it was simple. I had a nice reflection plugin going on, but it relied on when a selection changed or the cat paged (auto) - I might keep diggingt
defrag wrote:alamata: sorry to drag your thread elsewhere.. are you happy to keep going? or do you want us to knock something up for you?