HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: Yiting on 2007-11-03 04:49:56

Title: foo_winamp_ipc
Post by: Yiting on 2007-11-03 04:49:56
foo_winamp_ipc create a fake winamp window to handle winamp IPC(Inter-process communication) commands.
Using IPC is a easy way to control foobar or receive information by outer applications.

This component use completely callback object to keep information, event under frequently query wouldn't impact on foobar.
It has also implemented some useful functions, like progress seeking, volume control, song info, etc.

The list of supported command, please see below link.
Homepage: http://yiting2002.myweb.hinet.net/rainmeter/winamp_ipc.html (http://yiting2002.myweb.hinet.net/rainmeter/winamp_ipc.html)
Download: foo_winamp_ipc-0.1.3.zip (http://163.13.128.179/?project=foo_winamp_ipc&version=0.1.3) (41.0 KB)

Changes in v0.1.3:
*USE lookup table for GET/SET volume.
*ADD 9 new commands. (See homepage for details.)
Changes in v0.1.2:
*FIX on_playback_edited would crash.
*ADD IPC_GETLISTPOS/IPC_GETLISTLENGTH command.
*ADD IPC_SETPLAYLISTPOS command.
(http://i205.photobucket.com/albums/bb36/yiting2002/winamp_ipc.png)
Title: foo_winamp_ipc
Post by: s33m33 on 2007-11-03 05:06:28
Thanx Yiting,
Very nicely done. Totally non-intrusive and fully functional
Title: foo_winamp_ipc
Post by: Mangix on 2007-11-03 06:55:46
don't think it works with 0.9.5(can't find Winamp IPC title).
Title: foo_winamp_ipc
Post by: FavioD on 2007-11-03 07:24:02
doesn't work
Title: foo_winamp_ipc
Post by: Yiting on 2007-11-03 07:38:18
don't think it works with 0.9.5(can't find Winamp IPC title).

Sorry i am not yet testing it on 0.9.5 

According to my trying, it could still work currently.
But i also didn't know why foobar didn't show 'Winamp IPC title' in 'Advenced->Display->Legacy title formatting settings'.
maybe that is foobar's bug? or i should consider show that in different way.
Title: foo_winamp_ipc
Post by: foosion on 2007-11-03 11:41:01
But i also didn't know why foobar didn't show 'Winamp IPC title' in 'Advenced->Display->Legacy title formatting settings'.
maybe that is foobar's bug? or i should consider show that in different way.

Not a bug. That branch only shows legacy title formatting strings exposed by foobar2000 itself. You should either create a separate preferences page for your component, or create your own entry on the Advanced preferences page.
Title: foo_winamp_ipc
Post by: Chipicui on 2007-11-10 17:32:19
Thanks a lot Yiting!!! 
With your plugin, now I can use "Fadeamp 2" to control the crossfading over two seperate foobar instances, just like if'd be using a hardware output mixer.
I had been looking for this ability for a long, long time.
It works flawless with 0.9.5 b1.

Thanks again! 
Title: foo_winamp_ipc
Post by: zygzak on 2008-01-09 16:38:05
Thank you for a plugin.
It is full unicode compatibile? I have a problem with names such as "グッドバイ" or "佐藤タイジ" and i don't know if it is a plugin issue or my end-software.
Title: foo_winamp_ipc
Post by: Yirkha on 2008-01-10 00:28:50
Thank you for a plugin.
It is full unicode compatibile? I have a problem with names such as "?????" or "?????" and i don't know if it is a plugin issue or my end-software.

It partially depends on the application which is fetching the data, but the old standard Winamp API doesn't support Unicode.
As a matter of fact, when I was implementing it for my emulation, I came across some undocumented wide-char commands which should handle this, but I don't know whether they are really used by any plugins. If you will give it a try, you can get it here (http://www.hydrogenaudio.org/forums/index.php?showtopic=59388) - you don't have to set up anything, just having the component loaded should do.
Title: foo_winamp_ipc
Post by: zygzak on 2008-01-10 03:12:05
As a matter of fact, when I was implementing it for my emulation, I came across some undocumented wide-char commands which should handle this, but I don't know whether they are really used by any plugins. If you will give it a try, you can get it here (http://www.hydrogenaudio.org/forums/index.php?showtopic=59388) - you don't have to set up anything, just having the component loaded should do.

No difference but I tested it only by very old/strange pair - winamp.py (Python Winamp Controller) and BBinterface (which I hardly suppose to understand Unicode)... Hmm, "Now playing" screensaver also shows only "?????".
Title: foo_winamp_ipc
Post by: Yirkha on 2008-01-10 05:55:06
Now as I think of it, I was saying BS a bit. If what you are after is current track title, then it's just the standard window title of the "main Winamp window", as it is. And this is set by fb2k in unicode (I belive that by both components, though not sure about this one).
So it looks like the problem is on the receiver's side - either it does use only ANSI version of GetWindowText() to get the window title, or it's then trying to display it as ANSI text only. Any way, the special characters are lost during conversion somewhere. If it was a font issue, there would most probably be "the squares", not questionmarks.
Title: foo_winamp_ipc
Post by: Yiting on 2008-03-22 07:34:22
Fix the problem with title formatting settings in 0.9.5.
And now, you can Enable/Disable it anytime  .
Title: foo_winamp_ipc
Post by: Trivia on 2008-03-22 15:36:44
Thnx for the update.

Any chance getting this to work with mIRC/nbs-script?
Title: foo_winamp_ipc
Post by: Melfra on 2008-04-09 05:11:18
Finally a winamp plugin worth its salt! But here's a question: is there any way to get the playlist number to show up instead of the track number? I thought  replacing %tracknumber% with %playlist_number% would work, but no luck there.
Title: foo_winamp_ipc
Post by: Yirkha on 2008-04-09 12:34:28
The field you want is called %list_index%. You'd know yourself if you'd clicked the item called "Title Formatting Help" in the Help main menu and read that nifty document. If you have a main menu, that is.
Title: foo_winamp_ipc
Post by: Melfra on 2008-04-09 17:07:12
I've already tried that, as well as going through all of the related formatting strings, and none have worked. I assume this feature is impossible through the winamp ipc menu, but it was a stupid mistake for me to think that something working through Foobar would also work in Winamp. In other words, I probably went about this the wrong way, but even when going to title formatting in the main menu, it doesn't work properly. Thus, I assume it's simply a problem on my end, and an unimportant one at that, so for now I'm letting it be. Threadjack over, sorry to bother.
Title: foo_winamp_ipc
Post by: Yirkha on 2008-04-09 19:14:27
Ah, yes, the %list_index% works only when enumerating playlist - it is not available to the component for "currently playing item".

However, if "a problem on my end" means you are creating another interface for this information yourself, you might use IPC_GETLISTPOS. (If this message is supported by foo_winamp_ipc - I don't know.)
Title: foo_winamp_ipc
Post by: boombaard on 2008-04-09 22:46:34
hm.. i know my formatting string isn't very short, or simple.. but this one used to work in winamp_spam just fine.. yet in this one it shits bricks.
any idea why? (it only seems to want to display something like 50 chars anyway.. is that a hard limit imposed?)

Code: [Select]
[$if2(%composer%,%artist%)]$iflonger([$meta(artist,0)],2, '{'%album%'}' - [%tracknumber%. ], - )[%title%[ {%contentgroup%}]][, Performed by: $iflonger([%conductor%],2,%conductor%',' %ensemble%[ - %performer%],$iflonger([%ensemble%],2,%ensemble%[ - [%performer%]],[%performer%]))][ '('%date%')']
Title: foo_winamp_ipc
Post by: Yiting on 2008-04-18 20:56:26
Because foobar not just have single playlist, so IPC_GETLISTPOS/IPC_GETLISTLENGTH would always focus on Playing playlist (not Activate playlist).

Those still only use callback object to maintain internal variables, any problem please report here
Title: foo_winamp_ipc
Post by: Yiting on 2008-04-20 22:35:45
Sorry for update again.

In v0.1.3 has finished almost all IPC commands, hopes everyone to enjoy it.
Title: foo_winamp_ipc
Post by: Fangs404 on 2008-05-05 08:19:11
This worked for a while with Digsby (http://www.digsby.com/), but for some reason, it's no longer working.  It just appears that Digsby isn't picking up on the commands for some reason.  Is this a bug with Digsby or with the plugin?

Thanks for your continued development. 
Title: foo_winamp_ipc
Post by: OTMOPO3OK on 2008-06-01 07:57:02
But i also didn't know why foobar didn't show 'Winamp IPC title' in 'Advenced->Display->Legacy title formatting settings'.
maybe that is foobar's bug? or i should consider show that in different way.

Not a bug. That branch only shows legacy title formatting strings exposed by foobar2000 itself. You should either create a separate preferences page for your component, or create your own entry on the Advanced preferences page.


Hi,
I was wondering how can I do that? Could you please provide a more in depth explanation/example.

I can't get CD Art Display to work with foobar 9.5.3.
Thank you very much.
Title: foo_winamp_ipc
Post by: Jleagle on 2008-06-03 21:10:58
This worked for a while with Digsby (http://www.digsby.com/), but for some reason, it's no longer working.  It just appears that Digsby isn't picking up on the commands for some reason.  Is this a bug with Digsby or with the plugin?

Thanks for your continued development. 



Id also like to know.. Digsby + foobar = 
Title: foo_winamp_ipc
Post by: Fangs404 on 2008-06-14 04:07:45

This worked for a while with Digsby (http://www.digsby.com/), but for some reason, it's no longer working.  It just appears that Digsby isn't picking up on the commands for some reason.  Is this a bug with Digsby or with the plugin?

Thanks for your continued development. 



Id also like to know.. Digsby + foobar = 


http://www.hydrogenaudio.org/forums/index....showtopic=61516 (http://www.hydrogenaudio.org/forums/index.php?showtopic=61516) works with Digsby.  I think there's something broken in this component right now.
Title: foo_winamp_ipc
Post by: Yiting on 2008-06-28 01:14:21
This worked for a while with Digsby (http://www.digsby.com/), but for some reason, it's no longer working.  It just appears that Digsby isn't picking up on the commands for some reason.  Is this a bug with Digsby or with the plugin?

Thanks for your continued development. 


I finally have chance to try Digsby
According to my test, Digsby use a special hack IPC_GETPLAYLISTTITLE for get music title, this message should be only used by internal plug-in.
This message not support unicode encoding, so not be implemented and report a null value.
I think Digsby should check the return value to solve this problem, or I may release another version without playlist support.
Title: foo_winamp_ipc
Post by: Flopper on 2009-05-19 13:03:31
not working with Trillian?
Title: foo_winamp_ipc
Post by: dek on 2009-06-04 08:38:04
foo_winamp_ipc not working on versions above 0.9.6.5 
Title: foo_winamp_ipc
Post by: Yirkha on 2009-06-04 08:58:42
How specifically doesn't it work for you?
Title: foo_winamp_ipc
Post by: dek on 2009-06-04 14:16:56
Not sends information to a IM-pager info "now plays"
Title: foo_winamp_ipc
Post by: Joffi on 2009-06-13 21:48:16
How specifically doesn't it work for you?

The remote controls all seem to function, however the text string is not showing up. %title% etc is blank.
Title: foo_winamp_ipc
Post by: pyr0rrzzz on 2009-06-20 20:10:04
Yeah, that sucks :/ I too want to use it with Trillian.
Title: foo_winamp_ipc
Post by: bwat47 on 2009-06-22 19:40:04
Yeah doesn't work for me in pidgin, trillian astra, or digsby.
Title: foo_winamp_ipc
Post by: JimmyZ on 2009-07-10 05:55:26
doesn't work for me in GTalk(now playing)
Title: foo_winamp_ipc
Post by: ~*McoreD*~ on 2009-07-19 01:07:45
Yeah doesn't work for me in pidgin, trillian astra, or digsby.


Doesn't work with Digsby here too.


Working: foo_vis_shpeck.dll (229 KiB)
Title: foo_winamp_ipc
Post by: PickYerKnows on 2009-07-19 04:14:11
Yeah doesn't work for me in pidgin, trillian astra, or digsby.


Doesn't work with Digsby here too.


Working: foo_vis_shpeck.dll (229 KiB)


Doesn't work for me with Digsby either. I'm thinking of taking up C++ just so I can code one for it lol.. I don't like pidgin or any of the other IM progz, but foobar has become my fave music player as well.
Title: foo_winamp_ipc
Post by: Ota-kun on 2009-07-26 04:54:57
Is there a mirror to this?

The dl link in the FP seems to time out...
Title: foo_winamp_ipc
Post by: Jubei on 2009-08-25 09:59:45
Finally upgraded to Foobar 0.9.6.9 but cannot get it to work nice with Digsby ...
Title: foo_winamp_ipc
Post by: ExUser on 2009-08-28 19:00:17
Try using Shpeck instead. It's not just a visualization wrapper, it emulates a lot of Winamp functionality.
Title: foo_winamp_ipc
Post by: Jubei on 2009-08-29 17:40:07
Try using Shpeck instead. It's not just a visualization wrapper, it emulates a lot of Winamp functionality.


Thanks! Works immediately out of box. Great!!
Title: foo_winamp_ipc
Post by: RedSaint on 2009-11-14 04:39:04
Great plugin  I'm a little behind with the plugins for foobar2000 as I've been living under a rock these last few years  so now that I wanted to install all that good stuff and I found out about foo_winamp_spam or whatever it was called, had been banned I decided to find the alternative especially so I could get GTSDLL working somewhat again. I can't get the foobar2000 part of GTSDLL to work anymore obviously, but with this plugin I'm able to fool GTSDLL to think I'm using WinAmp  So happy happy joy joy, I'm able to spam my mates on IRC heh - Already had AMIP installed, but it wouldn't hurt with an alternative solution.

Only problem I have with this plugin is the handling of streams. When I play a song on my computer it tells IRC exactly what it needs to know, metadata and all that. But that isn't the case when I listen to an internet radio like digitally imported. Then it only passes along playtime data, and not the updated metadata. So while I can see what song I'm currently listening to in foobar2000 and even display it with AMIP on IRC, I can't get it shown using this plugin.
I hope you understand the problem properly as I did my best to explain despite English not being my native tongue, and I hope you will find a solution for it in your next release of the plugin should we be graced with such a thing  Thanks for your hard work!
Title: foo_winamp_ipc
Post by: Nol888 on 2009-11-30 06:57:31
Confirming the above post that the plugin does not work with Google Talk. I'm not quite sure how Google Talk retrieves the now playing information from Winamp, but it doesn't seem to be via the window title, as both foo_winamp_spam and this plugin emulate the window title and Google Talk only picks up on the window title.

The reason I'm trying to find an alternative solution is because of the fact that foo_winamp_spam does not transfer unicode information to Google Talk, although I don't know if unicode titles in Winamp appear correctly.