Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: winamp_spam and textinfo updates (Read 18061 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

winamp_spam and textinfo updates

Reply #50
Just tell me to RTFM if this is implemented or can be done otherwise... But I'd really like to see a feature which copies the currently playing track to the clipboard? TIA
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe

winamp_spam and textinfo updates

Reply #51
Use foobars own copy command? I have set ctrl+shift+c for it's global hotkey and it works just fine..

winamp_spam and textinfo updates

Reply #52
Damn... I really have to be blind... Where are my glasses?  Sorry about that...
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe

winamp_spam and textinfo updates

Reply #53
Quote
Just tell me to RTFM if this is implemented or can be done otherwise... But I'd really like to see a feature which copies the currently playing track to the clipboard? TIA

As anza said, foobar has native suppot for this, see keyboard shortcuts. Enable follow cursor if you want it for the current track (possibly the highlight current track with follow curosr setting too).
.

winamp_spam and textinfo updates

Reply #54
yeah, would looking really forward to get one

i may could do it by myself but i've never done any foobar plugins so hmm... only if really noone else want to do it..

winamp_spam and textinfo updates

Reply #55
Quote
New version, 1.2. (You may have missed 1.1 since I didnt announce it here, it had a fair bit of new things.)

Fixes newlines with non-title formatting strings (issue shows up with samurize).
Other minor changes & fixes.

Note: you should now use $char(13)$char(10) for new lines in title formatting (is actually the correct method, $char(10) will not work in most programs anymore).

Website is same: http://members.lycos.co.uk/musicf/

edit: 1.21 posted

Excellent post, and thanks for including the source. 

also, am I correct in seeing that there is nothing availabe for the "year" field?

oops, found the answer, it's the %date% field, which I though t was the current date

winamp_spam and textinfo updates

Reply #56
Quote
Excellent post, and thanks for including the source. 

also, am I correct in seeing that there is nothing availabe for the "year" field?

oops, found the answer, it's the %date% field, which I though t was the current date

Yeah I was meant to change %_date% and %_time% to %_system_date% and %_system_time% to avoid confusion but I forgot.. It will be in 1.26b which Ill upload later today..
.

winamp_spam and textinfo updates

Reply #57
Any chance of coding something to work with this mess from the ljwin32 client?

Though, considering it is an open source client, it might just be better for someone to add native support for winamp_spam. This problem does not really concern me, I just happen to have an older copy of the source code lying around on my drive.

Code: [Select]
// gets playing music from WinAmp or MediaPlayer, and returns
BOOL CPostOptionsDlg::GetPlayingMusic(CString &song)
{
    // is WinAMP open?
    HWND hwindow = ::FindWindow("Winamp v1.x",NULL);
    if (hwindow == NULL) {
 // sonique perhaps?
 hwindow = ::FindWindow("Sonique Window Class",NULL);
 if (hwindow == NULL) {
     // freeamp there?
     hwindow = ::FindWindow("FreeAmp",NULL);
     if (hwindow == NULL) {
   // is MediaPlayer open?
   hwindow = ::FindWindow("Media Player 2",NULL);
   if (hwindow == NULL) {
       // what about CD player?
       hwindow = ::FindWindow("MMFRAME_MAIN",NULL);
       if (hwindow == NULL)
     return FALSE;
       else
     song = GrabPlaying(hwindow, "- CD Player", 11, 4);
   }
   else
       song = GrabPlaying(hwindow, "- Windows Media Player", 22, 3);
     }
     else
   song = GrabPlaying(hwindow, "FreeAmp: ", 9, 2);
 }
 else
     song = GrabPlaying(hwindow, "- sonique", 9, 1);
    }
    else
 song = GrabPlaying(hwindow, "- Winamp", 8, 0);

    return TRUE;
}

// which description
// 0 -- Winamp
// 1 -- Sonique
// 2 -- FreeAmp
// 3 -- Media Player 6
// 4 -- Windows CD Player
CString CPostOptionsDlg::GrabPlaying(HWND win, CString match, int length, int which)
{
    CString song = "";
    CString msg = "";

    if (which == 0) {
 // in WinAMP playing?
 int ret = ::SendMessage(win, WM_USER, 0, 104);
 if (ret != 1)
     return song;
    }

    // let's go find the titlebar
    char this_title[2048],*p;
    ::GetWindowText(win,this_title,sizeof(this_title));

    p = this_title+strlen(this_title)-length;
    
    while (p >= this_title)
    {
 if (!strnicmp(p,(LPCTSTR)match,length))
     break;
 p--;
    }
    if (p >= this_title)
 p--;
    while (p >= this_title && *p == ' ')
 p--;

    // do application specific stuff
    int numhead = 0;

    switch (which) {
    case 0:
 // this is winamp
 *++p=0;

 char *iter, *start;
 start = this_title;
 iter = start;
 
 // remove leading s/^\d+\. //;
 while (*iter) {
     if (isdigit(*iter)) {
   iter++;
   numhead++;
     }
     else
   break;
 }
 if (numhead && *iter=='.' && *(iter+1)==' ') {
     start = iter+2;
 }

 song = start;
 break;
    case 1:
 // this is sonique
 song = this_title;
 song = song.Mid((song.Find((LPCTSTR)".mp3", 0)+7), song.GetLength());
 break;
    case 2:
 // this is freeamp
 song = this_title;
 song = song.Mid(length, song.GetLength());
 break;
    case 3:
 // this is media player 6
 p -= 3;
 
 // is it actually playing an mp3?
 if (!strnicmp(p, ".mp3", 4))
     *p=0;
 else
     return song;
 
 song = this_title;
 break;
    case 4:
 // this is windows cd player
 *++p=0;
 song = this_title;
 if (song == "Please insert an audio compact disc")
     song = "";
 break;
    }

    return song;
}

winamp_spam and textinfo updates

Reply #58
what ever happened to winamp_spam ? i downloaded it but wouldn't work for current version 0.666. hope things are in the works to get things together again.

winamp_spam and textinfo updates

Reply #59
Quote
COOL!  Thanks, now foobar really whips the llamas' ass!

Can he say that? Legally? haha.

winamp_spam and textinfo updates

Reply #60
Quote
what ever happened to winamp_spam ? i downloaded it but wouldn't work for current version 0.666. hope things are in the works to get things together again.

http://www.hydrogenaudio.org/forums/index....t=0&#entry83946

I'm pretty sure that works for 0.666. I'd love an update for 0.7 though.

winamp_spam and textinfo updates

Reply #61
Where i find winamp_spam plugin for Foobar 0.9?

winamp_spam and textinfo updates

Reply #62
does this make samurize work ?


 
SimplePortal 1.0.0 RC1 © 2008-2021