Finally got a bit of spare time to update my plugins
foo_winamp_spam 0.5 fixes a few more bugs, now includes sample config as you should always use config method. Comes in unicode and ansi flavors, be sure to pick the right one! (Unicode=NT/2K/XP only!)
http://www.r1ch.net/stuff/r1dll/foo_winamp...mp_spam-0.5.zip (http://www.r1ch.net/stuff/r1dll/foo_winamp_spam-0.5.zip) (Unicode)
http://www.r1ch.net/stuff/r1dll/foo_winamp...am_ansi-0.5.zip (http://www.r1ch.net/stuff/r1dll/foo_winamp_spam_ansi-0.5.zip) (ANSI)
(If you have no idea what winamp_spam does try http://www.r1ch.net/stuff/r1dll/ (http://www.r1ch.net/stuff/r1dll/))
And foo_textinfo 0.2 which reads in foo_textinfo.cfg and outputs foo_textinfo.txt as formatted by the config, now (hopefully) doesn't break as soon as you hit stop or add files to your playlist. http://www.r1ch.net/stuff/r1dll/foo_textinfo-0.2.zip (http://www.r1ch.net/stuff/r1dll/foo_textinfo-0.2.zip)
Enjoy!
(Edit: Silly brackets breaking my URLs!)
I was waiting for this anxiously, I made a little script for this plugin, and the unicode thing in filenames made things a bit more difficult (if someone is interested I can publish it)
I love your foo_textinfo plugin, but an option to specify where to put the foo_textinfo.txt would be great: I want to put it onto a network drive of my gateway, so it can display what i'm currently listening to on its lc screen
I hope this isn't too hard to implement, still got some spare time?
Looks like the problem was in r1dll.dll when it retrieves the filename, it gives me things like:
Mago De Oz - [Jesús De Chamberà (Opera Rock)] - Hasta Que Tu Muerte Nos Separe.mp3
when in reality is:
Mago De Oz - [Jesús De Chamberí (Opera Rock)] - Hasta Que Tu Muerte Nos Separe.mp3
Could you please make a fix for that?
Make sure you're using the right version of the winamp_spam dll, eg unicode or ANSI.
Ahhh, i remember the day you said you'll spare us the pain and not release it , like it was yesterday. Thank you so much for bringing more spam into our lives .
so, tell me what i am doing wrong:
i have the following script set up in mirc --
/t {
set %title $dll(r1dll.dll, GetCurrentWinampSong, 0)
/describe $active is playing %title
unset %title
}
..and %title seems to do nothing! all i get on irc this:
* mmcc is playing
...no title, no nuthin. it seems like it should work 100%. help?
awesome script/plugin
many thanks
so, tell me what i am doing wrong:
i have the following script set up in mirc --
/t {
set %title $dll(r1dll.dll, GetCurrentWinampSong, 0)
/describe $active is playing %title
unset %title
}
..and %title seems to do nothing! all i get on irc this:
* mmcc is playing
...no title, no nuthin. it seems like it should work 100%. help?
You're using incorrect version of plugin.
I was using already the unicode version (the other made what mmcc describes).
set %FOO.cadenatemp $dll($scriptdirdlls\r1dll.dll, GetCurrentWinampSong, 0)
works well if I use the unicode (in XP) but this:
set %FOO.file $dll($scriptdirdlls\r1dll.dll, GetCurrentWinampSongFileName, 0)
is what gives me problems.
Finally got a bit of spare time to update my plugins
And foo_textinfo 0.2 which reads in foo_textinfo.cfg and outputs foo_textinfo.txt as formatted by the config, now (hopefully) doesn't break as soon as you hit stop or add files to your playlist. http://www.r1ch.net/stuff/r1dll/foo_textinfo-0.2.zip (http://www.r1ch.net/stuff/r1dll/foo_textinfo-0.2.zip)
thankyou thankyou thankyou! That was the only problem I've had with it. Great plugin!
Ok using multiple lines won't work on 0.57, propably because the "major changes in title formatting (some weird [] sections containing functions will be broken, beware), see title formatting help for info on new features", as foobar now allows the user to split the code into multiple lines... NOT nice at all
EDIT: Of course I mean the textinfo plugin (or winamp spam also?)
Ok using multiple lines won't work on 0.57, propably because the "major changes in title formatting (some weird [] sections containing functions will be broken, beware), see title formatting help for info on new features", as foobar now allows the user to split the code into multiple lines... NOT nice at all
Not nice at all? Very nice actually. The changes are good. Instead of staying with the previous ones, the choise to imporve formatting and not let "compatibility" with some current stuff get in the way for better things in the future, is good in my opinion.
Yeah I don't think this is a bad thing, but I think it's not nice that there is no way to "force line change" or something.
Ok, I workedaround the thing using the single quotation marks! here's my foo_textinfo.cfg:
$if(%artist2%,%artist2%,%artist%) - $if(%title2%,%title2%,%title%)'
'
$padcut($shortest($if(%artist2%,%artist2%,%artist%),$cut($if(%artist2%,%artist2%,%artist%),16)..),18)'
'
$padcut($shortest($if(%title2%,%title2%,%title%),$cut($if(%title2%,%title2%,%title%),16)..),18)'
'
$padcut($if(%album%,$shortest($if(%album2%,%album2%,%album%),$cut($if(%album2%,%album2%,%album%),16)..),<N/A>),18)'
'
$padcut($if(%tracknumber%,%tracknumber%,<N/A>),9)'
'
$padcut($if(%date%,%date%,<N/A>),8)'
'
$padcut(%_length%,9)'
'
$padcut(%__bitrate%kbps,8)'
'
$padcut($div(%__samplerate%,1000).$substr(%__samplerate%,3,3)kHz,8)'
'
$padcut($ifgreater(%__channels%,1,stereo,mono),9)'
'
$padcut($cut(%__replaygain_track_gain%,6)dB,9)'
'
$padcut($upper($ext(%_filename_ext%)),8)'
'
This outputs a file like this:
Nirvana - You Know You're Right
Nirvana
You Know You're ..
Nirvana
01
2002
3:38
192kbps
44.1kHz
stereo
-8.700dB
MP3
The first line's for Samurize, others for my LCD. I've got an %artist2%, %title2% and/or %album2% tag in every song that has ä, ö, å in it's name, it's artist's name or in the album's name. So if the artist's name was ÄÖÅ, it'd be in the normal %artist% tag and in the %artist2% would be "AOA". This is because my LCD can't show international letters or other special characters. I've also padded those fields so it all fits perfectly on the LCD
Oh, and I HAD $if2's there, but it seems that they don't work in version 0.57 any more...
so, tell me what i am doing wrong:
i have the following script set up in mirc --
/t {
set %title $dll(r1dll.dll, GetCurrentWinampSong, 0)
/describe $active is playing %title
unset %title
}
..and %title seems to do nothing! all i get on irc this:
* mmcc is playing
...no title, no nuthin. it seems like it should work 100%. help?
I get a similar problem.
Using the script that was in the original zip file, I get:
* Gemini is playing (MPC@209kbps, 0:04/3:09)
I don't get an artist or song name.
I tried both plugins and they both have the same result.
I'm running XP. Any hints on getting this to work?
ahh, great!!!
Works very well, thanks
Hey, any way of making new versions of these two GREAT plugins, so they'd work with 0.6 betas?
Hey, any way of making new versions of these two GREAT plugins, so they'd work with 0.6 betas?
Yes please. I too am eagerly awaiting a version of textinfo to work with 0.6
yea... i ALSO would love foo_textinfo for 0.6x
...And another vote for a new text_info
me too
And antoher vote.
1 more vote for text_info. (But please fix it to update the right tracking file and not create others in different places.) Thanks.
It seems that R1CH has left us alone on this one. Maybe someone else could try doing plugin that works same way as foo_textinfo? I know we have many skilled programmers here (kode54 and Curi0us_George to name the first ones that came in my mind), and I believe this can't be a hard task to do for you. Please, help us!
Anyone interested in remaking these??
I might at some point in the future, but I haven't even had time to work on foo_shizzle for a while. :\
Hey thanks man! It's really great if you really plan to work with these (even if it's "at some point in the future"). I believe we don't need the winamp_spam plugin, but the textinfo would be so sweet! And I believe if you make it we even get better functionality as we can hopefully configure it in foobar preferences B) A great thing would also be having the possibility to select the directory where the textfile is created (and possibly the name of the file also). Hopefully you'll do this!
i previously made a simple one just to mess about with making a component.
im not really a very good coder, but find it at
http://members.lycos.co.uk/musicf/ (http://members.lycos.co.uk/musicf/)
it does have bugs, i know it doesn't write unicode file names properly or make unicode text files properly. still it works, if it meets your needs feel free to use it, but i won't be updating it.
its compiled with 0.6b11 sdk.
Cool! Just tried it a bit and it SEEMS to be enough for me. Of course I'd like to get it to support unicode fully, but this really better than nothing and for now I still use my %artist2% / %title2% / %album2% etc tags to go round the problem Thank you for this, but I'm still waiting if Curi0us_George is going to start this project also. I'll begin testing this plugin more when I get home on sunday, so I'll bitch about them then (even though you wont update the plugin).
anza, I said, "might". That's if I get the time. (I'm going to have to do some hacking on foo_shizzle to get it to work with the new SDK.) So don't get your hopes up too high.
musicmusic, that looks good to me.
George, I said "It's really great if you really plan to work..." Well if you're not taking the job, musicmusic's plugin does it finely also.
BTW, musicmusic could you put the source avaliable also? So people can update it if you wont
EDIT: OK, I've fallen in love again This plugin seems to kick ass! I can't wait to get home on sunday to do some serious testing!
I think that for somebody foo_winampspam could be still usefull /somebody like me for example / I've been using it to display song title/artist on miranda popup. Now I'm using baloon tooltips but i can't say they're beautiful and if anyone could recompile winampspam milions of miranda users would be grateful
musicmusic,
Thanks for foo_text. It appears to work well. Please continue development and support on it if it is at all possible. A lot of us would appreciate it.
Ok i just put an updated version on the same site, i changed some stuff so something may be broken. I would love to continue to update it but i really can't code. I only have MSVC6, no books or nothing, not even the msdn library (the help for MSVC6) and I really aint sure about a lot of stuff.
anza: i will put up the source once ive cleaned it up a bit, its kinda messy. Anyway, its fairly simple so I don't know if it would actually be useful to anyone.
Would it be possible to put a "update file every X seconds"? Don't ask why, but it'd be really great
Would it be possible to put a "update file every X seconds"? Don't ask why, but it'd be really great
sorry, out of my league. still the source is now up and a minor update.
Hey, it works great. Thanks, musicmusic. B)
what are some programs you can use the textinfo for?
Just curious
Ok i just put an updated version on the same site, i changed some stuff so something may be broken. I would love to continue to update it but i really can't code. I only have MSVC6, no books or nothing, not even the msdn library (the help for MSVC6) and I really aint sure about a lot of stuff.
anza: i will put up the source once ive cleaned it up a bit, its kinda messy. Anyway, its fairly simple so I don't know if it would actually be useful to anyone.
it's great. even bet than textinfo was. the preference page is very useful for one. and changing to a different string when not playing is great!
thanks for making it available
what are some programs you can use the textinfo for?
Just curious
Well I use this for example with LCDinfo and Samurize.
it's great. even bet than textinfo was. the preference page is very useful for one. and changing to a different string when not playing is great!
thanks for making it available
no problem.
i just made a minor update again, probably the last one from me, I hope someone will take over the plugin.
I was wondering if it is possible to make foo_text to add a new line to text file not to overwrite it?
I was wondering if it is possible to make foo_text to add a new line to text file not to overwrite it?
Sure, i made an option to append text to the end of file.
Though, you'd need to put a separator or $char(10) at the end of your playing string, I could make a option of this if you want.
You may also want to disable the stop string because that gets called inbetween every file.
I could make a option of this if you want.
I'd be grateful
I'd be grateful
I wasn't sure if you wanted an option to auto insert a new line or choose your own separator, so I done it like the latter.
You press enter in the separator editbox and you'll have a new line on every append, you can put multiple returns or use a comma, whatever you feel like.
Thanks, the last thing I've been missing in foo_textu
Anza: I made a version of foo_text.dll with timers as you requested
Find the test version at
http://members.lycos.co.uk/musicf/test/ (http://members.lycos.co.uk/musicf/test/)
foo_text.dll = ansi version, foo_textu.dll = unicode version.
The timer works irrespective of the write track on song change version/stop.
It seems ok here, if all goes well i'll submit it to the 3rd party components page.
This version also has some timer related additions.
COOL! Thanks, now foobar really whips the llamas' ass!
COOL! Thanks, now foobar really whips the llamas' ass!
lol! i updated the test version a while ago i guess you got the new version.
BTW foosion I borrowed your code for the tabs in prefs since i ran out of space in mine I hope its ok, i gave you credit in the about text.
I'm gonna test it a bit more, then i'll release version 1.0, tomorrow probably.
BTW anza, i just actually tested Samurize properly, it quite nice to leave pinned to the desktop. But I immediately noticed the limit on the update interval to 1000msec, do you know why? At anyrate, i edited the samurize config ini to say Interval=100, it works a lot better, especially with pause etc. strings.
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/ (http://members.lycos.co.uk/musicf/)
edit: 1.21 posted
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
Use foobars own copy command? I have set ctrl+shift+c for it's global hotkey and it works just fine..
Damn... I really have to be blind... Where are my glasses? Sorry about that...
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).
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..
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/ (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
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..
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.
// 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;
}
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.
COOL! Thanks, now foobar really whips the llamas' ass!
Can he say that? Legally? haha.
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=0entry83946 (http://www.hydrogenaudio.org/forums/index.php?showtopic=8436&st=0&#entry83946)
I'm pretty sure that works for 0.666. I'd love an update for 0.7 though.
Where i find winamp_spam plugin for Foobar 0.9?
does this make samurize work ?
Where i find winamp_spam plugin for Foobar 0.9?
Here (foo_winamp_spam 0.9 beta (http://www.hydrogenaudio.org/forums/index.php?showtopic=42941)).