Hydrogenaudio Forums

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: R1CH on 2003-08-30 21:03:01

Title: foo_winamp_spam 0.7
Post by: R1CH on 2003-08-30 21:03:01
I've just compiled foo_winamp_spam for 0.7 - I really like how the API is developing, made it much easier to work with after the initial transition.

foo_winamp_spam attemps to emulate the Winamp API by creating a "Winamp 1.x" window with winamp's classname. This allows programs designed to control winamp or read info like kbps/khz/channels/etc to be able to (hopefully) do the same thing in foobar2000. Such uses include my mIRC song reporting DLL (http://www.r1ch.net/stuff/r1dll/), but I'm sure you can find more . I've had reports of it working with certain internet keyboards designed to control winamp, some trillian plugins and other various software.

Version 0.7 includes many more API functions, a native config page (instead of foo_winamp_spam.cfg which can now be deleted) and ANSI/Unicode in the same DLL (assuming I used utf8api.dll correctly).

More info and download is available at: http://www.r1ch.net/stuff/foobar/ (http://www.r1ch.net/stuff/foobar/)
Title: foo_winamp_spam 0.7
Post by: Gemini on 2003-08-30 22:58:10
Thanks a lot Rich. I've been patiently waiting for your updated version for awhile. 
Title: foo_winamp_spam 0.7
Post by: ditto_n on 2003-08-31 03:43:21
works very well with your mirc dll, thank you
Title: foo_winamp_spam 0.7
Post by: askoff on 2003-08-31 14:42:19
I have one big question. Why in hell you want to flood around the IRC that s*it what you are listen to? I have never get it and i think it's rude to flood that info in everywhere.
Title: foo_winamp_spam 0.7
Post by: ditto_n on 2003-08-31 15:23:24
I chat in Irc to just chat, and when I do, music is a usuall subject, for fun we show off what songs we are listening to, so we can see what kind of music they are into.
Title: foo_winamp_spam 0.7
Post by: Peter on 2003-08-31 15:46:41
I fail to understand the purpose of spammer components if you can copy name of currently played track (with whatever custom formatting you want) to clipboard by rightclicking on system tray icon (needs messing with menu setup to show up).
Title: foo_winamp_spam 0.7
Post by: BlindSeer on 2003-08-31 16:06:05
Thanks for the update R1CH.. I love this plug-in for Litestep integration.
Title: foo_winamp_spam 0.7
Post by: wrongo on 2003-08-31 16:57:53
R1CH....

Thanks for this component....Now I can use my favorite shell (LiteStep) with my favorite player (F2K).

A wonderful addition!

Wrongo
Title: foo_winamp_spam 0.7
Post by: ReLiK on 2003-08-31 17:59:31
ahh nice...

good job!
Title: foo_winamp_spam 0.7
Post by: ReLiK on 2003-09-01 16:04:02
I was wondering if the developer of this plugin is working on a solution to the problem identified in this thread :

http://www.hydrogenaudio.org/forums/index....howtopic=12817& (http://www.hydrogenaudio.org/forums/index.php?showtopic=12817&)
Title: foo_winamp_spam 0.7
Post by: URMEL on 2003-09-01 19:36:49
@zZzZzZz:
That's exactly what I've done without it.
But it's so incredidible exhaustin to move the mouse   
Title: foo_winamp_spam 0.7
Post by: R1CH on 2003-09-01 19:46:34
Interesting, I've not seen the metadb warning myself. I do make one call to handle_duplicate but upon song change handle_release should be called...

Where does the error appear? Does the console popup or something? If you can give me exact steps to reproduce this I'll fix it, however I can't seem to get the error to occur here.
Title: foo_winamp_spam 0.7
Post by: Peter on 2003-09-01 19:55:14
Quote
Interesting, I've not seen the metadb warning myself. I do make one call to handle_duplicate but upon song change handle_release should be called...

Where does the error appear? Does the console popup or something? If you can give me exact steps to reproduce this I'll fix it, however I can't seem to get the error to occur here.

If you leak metadb_handles, there is a MessageBox() on shutdown, displaying number of objects leaked (actually that message has been there for ages, but it was OutputDebugString() instead and a lot of people don't seem to have ever noticed it that way).
I have some doubts if ReLiK's "report" can be taken seriously though.
Title: foo_winamp_spam 0.7
Post by: anza on 2003-09-01 19:56:13
The error should pop up when exiting foobar. I'm also getting this and I believe it is foo_winamp_spam's fault, as I've updated foo_history, foo_dbsearch and foo_tts that were supposed be the only ones giving this error. I'm not sure if it's some other plugin though.
Title: foo_winamp_spam 0.7
Post by: ReLiK on 2003-09-01 21:24:15
I have only ever had one external plugin installed at a time.

First was AMIP. It had some stability issues but even when it was working as it should, when I quit Foobar, I got the metadb warning, in a separate small popup box.

I removed that plugin and the pop up errors stopped.

I then installed winamp_spam, which is perfectly stable, yet still gives those error reports on exiting Foobar.

This validates the theory that its the 3rd party plugins that are causing the problem.

I don't know how else to 'report' this error, maybe you can enlighten me. If you don't want to take me 'seriously' then thats up to you. I'm just a regular user who's trying to help. Obviously it's not wanted.
Title: foo_winamp_spam 0.7
Post by: Peter on 2003-09-01 21:27:15
Quote
I have only ever had one external plugin installed at a time.

First was AMIP. It had some stability issues but even when it was working as it should, when I quit Foobar, I got the metadb warning, in a separate small popup box.

I removed that plugin and the pop up errors stopped.

I then installed winamp_spam, which is perfectly stable, yet still gives those error reports on exiting Foobar.

This validates the theory that its the 3rd party plugins that are causing the problem.

I don't know how else to 'report' this error, maybe you can enlighten me. If you don't want to take me 'seriously' then thats up to you. I'm just a regular user who's trying to help. Obviously it's not wanted.

In order to be taken seriously, you should provide exact info how to reproduce the problem (what you just did), which definitely wasn't included in your previous post, hence my comment. I'm sorry if it insulted you.
Title: foo_winamp_spam 0.7
Post by: ReLiK on 2003-09-01 21:30:16
The problem is I can't reproduce it every time.

If I start Foobar, play a few songs and spam in IRC and quit immediately, the error doesn't seem to pop up.

However if its been a running a while then it does. I don't really know what else to say. Sorry.

Edit: Okay, the error only seems to pop-up if a song has been played right the way through. Else, it doesn't. Hope this helps.
Title: foo_winamp_spam 0.7
Post by: CrazyCoder on 2003-09-01 21:43:33
BTW, the problem with metadb leaks is fixed in AMIP 2.43.
Title: foo_winamp_spam 0.7
Post by: R1CH on 2003-09-20 18:41:52
metadb handle leak is fixed in foo_winamp_spam 0.71, error occurs now I'm back from vacation and installed latest RC .

Get it from: http://www.r1ch.net/stuff/foobar/ (http://www.r1ch.net/stuff/foobar/)
Title: foo_winamp_spam 0.7
Post by: anza on 2003-09-20 20:12:02
Wonderful!
Title: foo_winamp_spam 0.7
Post by: FAxenoff on 2003-09-23 12:07:51
hi R1CH!
I install foo_winamp_spam 0.71 and my Semagic (Livejournal Client ) can`t detect music. Music from Winamp and STP detected fine.

That normal or abnormal? 8-)

i know, you not say about FULL EMULATION, but...  that feature will be GREAT FEATURE!
Title: foo_winamp_spam 0.7
Post by: R1CH on 2003-09-23 13:09:35
Quote
hi R1CH!
I install foo_winamp_spam 0.71 and my Semagic (Livejournal Client ) can`t detect music. Music from Winamp and STP detected fine.

That normal or abnormal? 8-)

i know, you not say about FULL EMULATION, but...  that feature will be GREAT FEATURE!

That program wants me to make an account before I can run it, not much chance of that happening. I looked over the code briefly and it should work - it appears to use 'Winamp 1.x' classname so it should detect the 'fake' emulated window fine...
Title: foo_winamp_spam 0.7
Post by: kode54 on 2003-09-23 16:47:42
It would appear to be tripping on this little block of code:
Code: [Select]
if (which == 0) 
{
    // in WinAMP playing?
    int ret = ::SendMessage(win, WM_USER, 0, 104);
    if (ret != 1)
 return song;
}


So... that message would have to return 1.
Title: foo_winamp_spam 0.7
Post by: FAxenoff on 2003-09-24 07:49:13
R1CH: You don`t need login for testing. Enter any username and press "Just edit".

May be that can help you:
http://www.netean.com/stp/downloads/index.asp (http://www.netean.com/stp/downloads/index.asp) (STP source code)

ps. Im work under WinXP/rus SP1.
Title: foo_winamp_spam 0.7
Post by: R1CH on 2003-09-24 14:45:35
0.72 now out, supporting IPC_ISPLAYING for this Live Journal thingywhatsit.

Untested of course . Thanks kode54 for pointing out what I needed to change.
Title: foo_winamp_spam 0.7
Post by: FAxenoff on 2003-09-24 18:10:30
Ehhha! You made it!  Big Thx!
Title: foo_winamp_spam 0.7
Post by: spazz on 2003-09-24 19:44:59
hello there, R1CH

i also got a little request.. :>

there's a plugin for Miranda IM(a multi protocol-ICQ clone)that displays the current played song from winamp in your away message. but that plugin can't recognize the emulated string ;/ could you take a look at that?

client: http://miranda-im.org/download/ (http://miranda-im.org/download/)
plugin: http://miranda-im.org/download/details.php...viewfile&id=215 (http://miranda-im.org/download/details.php?action=viewfile&id=215)

would be very nice!

bye..
Title: foo_winamp_spam 0.7
Post by: kode54 on 2003-09-25 04:14:49
Okay, found what that Miranda plug-in needs. It needs that IPC_ISPLAYING message like ljwin32sema, but it also NEEDS a "#. " prefix... sort of. After it chops off the " - Winamp" it chops off everything before the first space in the string.

@spazz: Please recheck with 0.72. If necessary, add a prefix to your fake Winamp titlebar format string.
Title: foo_winamp_spam 0.7
Post by: spazz on 2003-09-25 08:26:44
okay thx for the advice kode54, and thx to R1CH for that plugin, i just had to use the updated version!
Title: foo_winamp_spam 0.7
Post by: snek_one on 2003-12-22 16:52:27
is there any way too use a winamp plugin with this?

i can't seem to figure out how to load a streaming dsp plugin...
Title: foo_winamp_spam 0.7
Post by: kode54 on 2003-12-22 18:39:10
This is a Winamp window message API emulator, not a plug-in emulator.


If by streaming DSP, you mean a SHOUTcast source, there a version of OddCast DSP for Foobar2000, which you can download here (http://www.oddsock.org/tools/oddcastv2_foo/).
Title: foo_winamp_spam 0.7
Post by: snek_one on 2003-12-22 18:50:31
Quote
This is a Winamp window message API emulator, not a plug-in emulator.


If by streaming DSP, you mean a SHOUTcast source, there a version of OddCast DSP for Foobar2000, which you can download here (http://www.oddsock.org/tools/oddcastv2_foo/).

aha, that's where my mistake was... thank you..

just one thing about OddCast, it doesn't want to work in v0.7.6?
Title: foo_winamp_spam 0.7
Post by: kode54 on 2003-12-22 21:15:42
Huh? It should work... As far as I know, the DSP API has not been changed since 0.74...
Title: foo_winamp_spam 0.7
Post by: enf on 2003-12-24 19:00:07
Nice

Although I'd really like to see being able to get the filename/path. Not sure what winamp API does this (I'm not a developer of winamp stuff). It always seems to return the filename of the first item in the playlist, and not the currently playing item.

Also, litestep's geekamp's !amp_show shows the invisible pseudo-winamp window  Not sure if that !amp_show function does that with winamp api (I assume it uses windows API to show the window, which in this case, nothing could be done about it).

Thanks for the great plugin
Title: foo_winamp_spam 0.7
Post by: rage- on 2003-12-24 21:39:50
Does anyone know if it's possible to get lsslider working with this module? LSSlider is a LiteStep module that controls and reports song position, winamp volume, and system volume. Reporting the song position works just fine, but when I try to skip ahead, nothing happens. Here's the module itself, along with a link to it's source: http://blkhawk.m-a-solutions.de/index.php?...p?open=lsslider (http://blkhawk.m-a-solutions.de/index.php?open=lsslider)
Title: foo_winamp_spam 0.7
Post by: psynapse on 2003-12-27 06:57:49
Quote
Nice

..

Also, litestep's geekamp's !amp_show shows the invisible pseudo-winamp window  Not sure if that !amp_show function does that with winamp api (I assume it uses windows API to show the window, which in this case, nothing could be done about it).

Thanks for the great plugin

try using the latest dynamp.dll

it works natively with foobar2000, and even detects what audio player is active, linking in to winamp 2, 3, or fb2k as the apps are opened/closed 

p.s LS owns jo0 
Title: foo_winamp_spam 0.7
Post by: R@M on 2003-12-30 22:57:56
Quote
Does anyone know if it's possible to get lsslider working with this module? LSSlider is a LiteStep module that controls and reports song position, winamp volume, and system volume. Reporting the song position works just fine, but when I try to skip ahead, nothing happens. Here's the module itself, along with a link to it's source: http://blkhawk.m-a-solutions.de/index.php?...p?open=lsslider (http://blkhawk.m-a-solutions.de/index.php?open=lsslider)

You can use Fooslider (http://www.loose-screws.com/mdownload.php?id=374) it's a version of lsslider 1.0, that works with Foobar. 
You can use the sliders for track positionining and for  changing the system volume. But the sliders don't change if the volume is changing or the track is progressing.
Dynamp50  isn't perfect too, the poweroff and prefs commands works only,  when a winamp api emulator is running.
The third  thing is the title display. I use
Quote
WinampLabelText "[windowTitle('FOOBAR2000_CLASS')] *"

To get the title  from the Foobar titlebar.  Its works fine, only the times are not updated if Foobar is minimized.

There are also two other plugins,  that  send commands too foobar. FooBang and fcmflwia. But  both of them don't work right with 0.76.

BTW: IF you want to dee my cuurent Desktop for Foobar, have a lokk at this pic (http://www.r-marks.de/test/Desktop)

cya(o)
    ...Rainer
Title: foo_winamp_spam 0.7
Post by: rage- on 2003-12-31 05:56:52
Quote
Quote
Does anyone know if it's possible to get lsslider working with this module? LSSlider is a LiteStep module that controls and reports song position, winamp volume, and system volume. Reporting the song position works just fine, but when I try to skip ahead, nothing happens. Here's the module itself, along with a link to it's source: http://blkhawk.m-a-solutions.de/index.php?...p?open=lsslider (http://blkhawk.m-a-solutions.de/index.php?open=lsslider)

You can use Fooslider (http://www.loose-screws.com/mdownload.php?id=374) it's a version of lsslider 1.0, that works with Foobar. 
You can use the sliders for track positionining and for  changing the system volume. But the sliders don't change if the volume is changing or the track is progressing.

Not quite what I'm looking for. I'd need 1.5 or higher, since I load it into an lsbox.
Title: foo_winamp_spam 0.7
Post by: mentaluproar on 2004-05-18 21:09:49
This plugin is great!  I an can run a bemused server and use btAmp on my palm tyo control foobar2000!  The only complaints I have is the lack of playlist data and a way to change active playlists.  Otherwise, this is an amazing plugins.  The strange thing is, the emulated API is more stable than the real API when used for this.
Title: foo_winamp_spam 0.7
Post by: PET on 2005-01-09 03:53:50
ATLEAST !!! I found something that can show what i lisen in mIRC. Thanx R1CH !!!
Title: foo_winamp_spam 0.7
Post by: anza on 2005-01-09 12:29:28
Quote
ATLEAST !![a href="index.php?act=findpost&pid=263913"][{POST_SNAPBACK}][/a]

Can't say anything else than: lol.
The plugin has been there since 2003

Quote
I found something that can show what i lisen in mIRC. Thanx R1CH !!![a href="index.php?act=findpost&pid=263913"][{POST_SNAPBACK}][/a]

Ever thought about using the built-in copy command for that?
Title: foo_winamp_spam 0.7
Post by: kalmark on 2005-01-09 12:36:48
Or AMIP
Title: foo_winamp_spam 0.7
Post by: CrazyCoder on 2005-01-09 14:31:30
Right, AMIP is available since 2001 (Foobar version since 2003).
Title: foo_winamp_spam 0.7
Post by: Punio.4 on 2006-02-21 18:01:05
Any way to make it work with the Winamp plugin for trillian?
It detects that "winamp" is active, but displays "Punio4 is listening to Cerulean Studios Band - The Empty Song"
Title: foo_winamp_spam 0.7
Post by: AsILayDying on 2006-02-25 17:49:56
Quote
Any way to make it work with the Winamp plugin for trillian?
It detects that "winamp" is active, but displays "Punio4 is listening to Cerulean Studios Band - The Empty Song"
[a href="index.php?act=findpost&pid=366043"][{POST_SNAPBACK}][/a]


Not quite sure but I use this with the lcdc winamp2 plugin for my matrix orbital lcd screen, try to play around with either plugin..........
Title: foo_winamp_spam 0.7
Post by: Punio.4 on 2006-03-14 16:29:39
So, noone has magaged to get it to work with Trillian?
SimplePortal 1.0.0 RC1 © 2008-2020