Also this needs to be dealt with as well please. The problem is when you have multiple sources and one of them is not there album_art shows the last good source in the list instead of continuing skipping until the next good one is found. Hope you'll get it sorted!
Anyway, great job!
Added: Another one, bind 'first source' as a double-click action. Now when I double click the first source shows up only for a brief moment before it switches to second source.
[span style='font-size:13pt;line-height:100%']FIXED SOURCE[/span]
David, I had a look into the source myself and managed to fix all of the above issues (not the system tray one though):
in uie_albumart.cpp:
bool uie_albumart::set_image(..
....
if(!file.is_empty()){
Bitmap bmp(string_wide_from_utf8(file.get_ptr()));
if(bmp.GetHeight()){
img=file;
crnsource = n; -ADDED THIS TO FIX ALBUM COVER STAYING ON;
break;
}
}
I've implemented a little walk-around on the issue with double-clicking returning the second source. In the same uie_albumart.cpp:
LRESULT WINAPI uie_albumart::on_message(HWND wnd1,UINT msg,WPARAM wp,LPARAM lp){
static bool b_dblclick = false; -ADDED THIS VARIABLE TO INDICATE DOUBLE-CLICK
switch(msg)
{
case WM_CREATE:
....
....
break;
case WM_LBUTTONDBLCLK:
click_func(cfg_dblclickfunc);
b_dblclick = true; -ADDED
break;
case WM_LBUTTONUP:
if(!b_dblclick){ -ADDED
click_func(cfg_lftclickfunc);
}
b_dblclick = false;
break;
case WM_MBUTTONUP:
Hope it helps!
[a href="index.php?act=findpost&pid=357683"][{POST_SNAPBACK}][/a]
Hi. Sorry for the delay, i've been busy with a few other things.
Thanks for the code. Saved me some effort
I'll test and upload updated versions of the DLL and source shortly.