HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: levsh on 2004-03-03 12:00:15

Title: foo_lirc plugin
Post by: levsh on 2004-03-03 12:00:15
Hello!

I want to announce foo_lirc plugin for controlling the FooBar2000 from a remote control. It is in the alpha stage of the development, but it already has the support for this features:

- configurable LIRC/WinLIRC server address and port
- supported player controls: play, pause, stop, prev.track, next track, track position and volume.

The plugin and its source code is available at SourceForge (http://sourceforge.net/projects/foolirc/) page, you may download binaries from here:
foo_lirc binary and sources (http://sourceforge.net/project/showfiles.php?group_id=103527&package_id=111200&release_id=221172)

I'm waiting for comments and list of missing actions 

Screenshot (http://theory.sinp.msu.ru/~shamardin/foo_lirc.gif)
Title: foo_lirc plugin
Post by: seanyseansean on 2004-03-03 14:52:35
Nice, i'm going to try this with my ATI AIW tonight
Title: foo_lirc plugin
Post by: Johncan on 2004-03-04 02:28:11
I use IRMan as my IR receiver with a Sony remote.  I wish the IRMan worked WinLIRC so I could try out your plugin.  Maybe someday IRMan and WinLIRC will be able to "play together."  Does anyone know of a plugin that will work with IRMan and Foobar 8?

John
Title: foo_lirc plugin
Post by: levsh on 2004-03-04 07:58:30
John, you may try to use the SlyControl (http://www.shareit.com/product.html?productid=176423) (detailed description (http://slydiman.compass.com.ru/eng/control/index.htm)) program, it supports IRMan devices, and it can work as a WinLIRC server.
Title: foo_lirc plugin
Post by: Phi on 2004-03-04 10:10:17
Thanks levsh , this should be very handy when I get around to building my UIRT2 (http://www.fukushima.us/UIRT2/).
Quote
I'm waiting for comments and list of missing actions

What I would like to see is the ability to bind a button to any of the possible foobar actions, with an action list similar to the one in core->keyboard shortcuts. This doesn't really fit in with the code you have written already, but I think it would be a nice function to have

P.S. About the SDK, I know its possible to get the list of available actions by using service_enum_t on the menu_item class, but I'm not sure whether this would be considered a hack. Is there a more standard way to get the available actions?
Title: foo_lirc plugin
Post by: dano on 2004-03-04 13:17:13
thx levsh, it works well for me
yes, Phi's suggestion would be great
Title: foo_lirc plugin
Post by: seanyseansean on 2004-03-04 13:27:23
Quote
Nice, i'm going to try this with my ATI AIW tonight

Aha, it works fine. Marvellous job! I agree with the other comments though, it'd be nice to have all the actions available.

I might have a look at that source, too. I've been thinking of implementing a 'predictive text' style method for entering song titles in the playlist search, using the numeric keys on the AIW remote.

ta,

sean
Title: foo_lirc plugin
Post by: foosion on 2004-03-04 15:10:59
Quote
P.S. About the SDK, I know its possible to get the list of available actions by using service_enum_t on the menu_item class, but I'm not sure whether this would be considered a hack. Is there a more standard way to get the available actions?

Using a service_enum for menu_items is a perfectly valid (and standard) way to get a list of the available commands.
Title: foo_lirc plugin
Post by: Phi on 2004-03-05 01:10:16
Quote
Quote
P.S. About the SDK, I know its possible to get the list of available actions by using service_enum_t on the menu_item class, but I'm not sure whether this would be considered a hack. Is there a more standard way to get the available actions?

Using a service_enum for menu_items is a perfectly valid (and standard) way to get a list of the available commands.

Thanks for the clarification, foosion.

I have some similar code left over from a plugin I worked on for a while (macro commands for foobar) but never released, so I might try to implement this myself if I get some free time over the weekend.
Title: foo_lirc plugin
Post by: Linkin on 2004-03-05 08:10:14
thanks a lot for this great plugin! it is exactly what i waited for since i got an ir-reciever. 
Title: foo_lirc plugin
Post by: cryptAWD on 2004-03-09 03:26:28
Thanks for this plugin. This is something I've been looking for. The only thing I'd like to see added at this point would be next/prev playlist.
Title: foo_lirc plugin
Post by: levsh on 2004-03-09 19:39:33
Quote
P.S. About the SDK, I know its possible to get the list of available actions by using service_enum_t on the menu_item class, but I'm not sure whether this would be considered a hack. Is there a more standard way to get the available actions?


It would be really helpfull if you or someone could drop me an email with a description, sample, or link to the documentation on how to do this. Right now I haven't found a good way for this.

Thanks

P.S. Really strange, I haven't received any email notifications from the forum about the messages in this thread. Any ideas?
Title: foo_lirc plugin
Post by: levsh on 2004-03-09 21:15:13
Quote
P.S. About the SDK, I know its possible to get the list of available actions by using service_enum_t on the menu_item class, but I'm not sure whether this would be considered a hack. Is there a more standard way to get the available actions?

I haven't found any clues or sources of the Keyboard Shortcuts plugin. Correct me if I'm wrong, but from the browsing through strings of the foobar2000.exe binary I came to a conclusion that "Actions" list from the "Keyboard Shortcuts" is actually hardcoded, and not generated dynamicly. It would be great if someone from the development team could tell if I'm right 

Anyway, if this is true, the list from the "Keyboard Shorcuts" seems to be a bit too long for a remote control actions, so the list of actions to be toggled remotely is still welcome 

I'd prefere to move this discussion to the Feature Requests (http://sourceforge.net/tracker/?atid=635071&group_id=103527&func=browse) tracker on the sourceforge 
Title: foo_lirc plugin
Post by: Phi on 2004-03-10 00:15:56
Quote
Quote
P.S. About the SDK, I know its possible to get the list of available actions by using service_enum_t on the menu_item class, but I'm not sure whether this would be considered a hack. Is there a more standard way to get the available actions?


It would be really helpfull if you or someone could drop me an email with a description, sample, or link to the documentation on how to do this. Right now I haven't found a good way for this.

Actually, I went ahead and implemented what I was suggesting a few days ago. It turned into almost a complete rewrite of your plugin. I didn't intend to hijack your plugin idea, but it turned out I had too much spare time on the weekend.  I'll post links to what I've done as soon as I can get to my computer at home.

Regarding how to get the list of actions, this is the code I was talking about:
Code: [Select]
    service_enum_t<menu_item> e;
   menu_item * i;
   for(i=e.first();i;i = e.next())
   {
       int m,n = i->get_num_items();
       for(m=0; m<n; m++)
       {
     string8 command;
     // You may recognise this as the menu_item::enum_item(n,string_base& out)
     //virtual function you implement when you make your own menu item
     i->enum_item(m,command);
       }
       i->service_release();
   }

service_enum_t is basically a way to enumerate through each instance of a certain object registered using a service_factory_t (or in the menu_item case menu_item_factory)

Hope I made sense there! 
Title: foo_lirc plugin
Post by: foosion on 2004-03-10 01:32:30
Quote
I haven't found any clues or sources of the Keyboard Shortcuts plugin. Correct me if I'm wrong, but from the browsing through strings of the foobar2000.exe binary I came to a conclusion that "Actions" list from the "Keyboard Shortcuts" is actually hardcoded, and not generated dynamicly. It would be great if someone from the development team could tell if I'm right 

The "Keyboard Shortcuts" page in preferences is implemented in the core, and the list of actions is most certainly not hardcoded. As the core also implements a whole batch of commands, the names of these commands will consequently be present in the foobar2000.exe binary.

Quote
Regarding how to get the list of actions, this is the code I was talking about:

You may want to check the type of the menu item as well, i.e. whether it is a context or main menu command.
Title: foo_lirc plugin
Post by: Phi on 2004-03-13 14:38:33
I think I'm finally ready to release my version of the plugin, so here it is...

Plugin: foo_lirc-0.2.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.zip)
Source: foo_lirc-0.2-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2-src.zip)

Screenshot (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-screenshot-0.2.gif) for those who are interested.

The main change is inherent support of all foobar main menu commands.
Title: foo_lirc plugin
Post by: levsh on 2004-03-14 09:34:10
Quote
Plugin: foo_lirc-0.2.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.zip)
Source: foo_lirc-0.2-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2-src.zip)

It would be great if you register in sourceforge, I'll give you full permissions on the foolirc project , I think it's a good idea to keep everything in one place 
Title: foo_lirc plugin
Post by: Phi on 2004-03-15 07:41:31
Quote
Quote
Plugin: foo_lirc-0.2.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.zip)
Source: foo_lirc-0.2-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2-src.zip)

It would be great if you register in sourceforge, I'll give you full permissions on the foolirc project , I think it's a good idea to keep everything in one place 

I agree its a good idea to keep everything in one place, but I'm (still) not too familiar with sourceforge, and I don't think I'll be able to continue development on this plugin now anyhow. Thanks for the offer though.

And obviously, you are free to use the -0.2 source however you want
Title: foo_lirc plugin
Post by: levsh on 2004-03-15 12:39:22
Quote
Quote
Quote
Plugin: foo_lirc-0.2.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.zip)
Source: foo_lirc-0.2-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2-src.zip)

It would be great if you register in sourceforge, I'll give you full permissions on the foolirc project , I think it's a good idea to keep everything in one place 

I agree its a good idea to keep everything in one place, but I'm (still) not too familiar with sourceforge, and I don't think I'll be able to continue development on this plugin now anyhow. Thanks for the offer though.

And obviously, you are free to use the -0.2 source however you want

Is it ok if I put your version on the Sourceforge myself then?
Title: foo_lirc plugin
Post by: Phi on 2004-03-15 23:27:58
Quote
Is it ok if I put your version on the Sourceforge myself then?

Yes certainly, that was what I was implying but forgot to mention.
Title: foo_lirc plugin
Post by: Linkin on 2004-05-28 21:34:30
Hi,

I am using the columns_ui and if I had the lirc plugin enabled and then close foobar and reopen it i always get this error message:
(http://home.arcor.de/jpichler/error.jpg)
I have to go to preferences and re-enable lirc support to make it work again. It happens always, note that the columns_ui has to be enabled. Is there anything you can do to fix this?

thanks in advance
Title: foo_lirc plugin
Post by: bleh on 2004-05-28 23:03:44
No, it's a bug in foo_lirc.  The way foo_lirc finds the main window is to do this:
Code: [Select]
#define foo_window_class TEXT("{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}")
hMainWindow = FindWindow(foo_window_class, NULL);

That was how it would work in Winamp.  However, that only works with the standard user interface, since columns has a different window class.  What either Phi or levsh needs to do is to change foo_lirc to use
Code: [Select]
hMainWindow = core_api::get_main_window();

They accomplish the same thing, except the bottom one works with user interfaces other than the standard one.  In fact, I'm pretty sure the standard UI has a hard-to-recognize window class like that to discourage people from trying to use FindWindow on it.

[span style='font-size:8pt;line-height:100%'](edit):  Wording changed.[/span]
Title: foo_lirc plugin
Post by: dano on 2004-05-29 02:06:42
I have the same problem as Linkin, but what I noticed is that if I install another plugin, it works again. But installing another plugin again brings back the problem.
Kind of weird, maybe someone can recompile the plugin with the correct method?
Title: foo_lirc plugin
Post by: Phi on 2004-05-29 08:31:38
Quote
Kind of weird, maybe someone can recompile the plugin with the correct method?

This same hack was fixed in my foo_gestures plugin a while ago (which I also haven't updated for quite some time ), but I didn't bother recompiling foo_lirc as I figured noone was using it.

Anyhow, I've now added the change and recompiled for foo-0.8.2. I haven't tested this, but there shouldn't be any problems.

foo_lirc-0.2.1.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.1.zip)
foo_lirc-0.2.1-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.1-src.zip)
Title: foo_lirc plugin
Post by: Linkin on 2004-05-29 09:36:41
thanks a lot phi! 
Title: foo_lirc plugin
Post by: seanyseansean on 2004-05-29 13:35:37
Quote
but I didn't bother recompiling foo_lirc as I figured noone was using it.

Ooooh wrong, I definitely use it with my ATI Remote.

Thanks for the update
Title: foo_lirc plugin
Post by: dano on 2004-05-29 14:00:32
Thanks for recompiling Phi
But I have a problem with your 0.2 version:
When I use "Playback/Next" or "Playback/Previous" via my remote it will skip one track and go 2 tracks further instead of only one (happens about every second time).
This did not happen with version 0.1, or maybe it is a problem of my remote receiver, it is not working so good anymore
Title: foo_lirc plugin
Post by: Phi on 2004-05-29 16:00:12
Quote
When I use "Playback/Next" or "Playback/Previous" via my remote it will skip one track and go 2 tracks further instead of only one (happens about every second time).
This did not happen with version 0.1, or maybe it is a problem of my remote receiver, it is not working so good anymore

Hi dano,

This is probably foo_lirc's fault. There is a repeat rate field that WinLirc sends to foo_lirc when you hold down a remote button, but at the moment version 0.2 is ignoring it, so you get the command executed once for each repeat. I guess this is what is happening in your case.

The problem is, since this is actually useful for certain commands (like volume or seek for instance), I can't just ignore repeated presses. Version 0.1 had only a few hardcoded commands, so levsh could specify which commands needed to allow repeats and which didn't. Now that I've added arbitrary commands it becomes a little more complicated.

I'm a little busy studying right now, but when I get time I'll work something out to fix it. I'm thinking a checkbox next to each command that you assign (along the lines of "allow repeats") would probably be the best solution.

Quote
Ooooh wrong, I definitely use it with my ATI Remote.

Thanks for the update

No Problem. I'm glad people are putting it to good use
Title: foo_lirc plugin
Post by: Phi on 2004-05-29 16:15:05
Quote
The problem is, since this is actually useful for certain commands (like volume or seek for instance), I can't just ignore repeated presses.

Well, I guess I can until I have a better solution...

foo_lirc-no_repeat.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-no_repeat.zip)

This version ignores repeats so it should fix your problems with skipping too many tracks if you can live without sane volume/seek control for a while
Title: foo_lirc plugin
Post by: dano on 2004-05-29 17:56:29
That's great Phi, thanks for your extra effort.
Title: foo_lirc plugin
Post by: Phi on 2004-06-05 11:40:33
foo_lirc 0.2.2foo_lirc-0.2.2.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.2.zip)
foo_lirc-0.2.2-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.2-src.zip)

Let me know if anything isn't working right.
Title: foo_lirc plugin
Post by: Safrax on 2004-06-26 16:59:31
Whenever Foobar 2000 starts up, foo_lirc doesnt automatically connect to the WinLIRC server.  I must manually go into the preferences dialog and put a tick in enabled before it will start.
Title: foo_lirc plugin
Post by: Phi on 2004-06-27 06:13:58
Quote
Whenever Foobar 2000 starts up, foo_lirc doesnt automatically connect to the WinLIRC server.  I must manually go into the preferences dialog and put a tick in enabled before it will start.

Thats what I get for maintaining a component that I don't actually use

I'll release a fix in the next few days or so.
Title: foo_lirc plugin
Post by: Phi on 2004-06-29 14:02:56
foo_lirc 0.2.3foo_lirc-0.2.3.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.3.zip)
foo_lirc-0.2.3-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.2.3-src.zip)
Title: foo_lirc plugin
Post by: Linkin on 2004-06-29 14:05:11
thanks...you're the best 
Title: foo_lirc plugin
Post by: Phi on 2004-06-29 14:10:03
Quote
thanks...you're the best 

No problem
Title: foo_lirc plugin
Post by: jay7 on 2004-08-01 19:44:24
ding-ding, bug report here! 
Well, may be I'm the last man on Earth still using eons ancient W95OSR2, but foo_lirc has problems under this OS-alike.
First, if i close and restart WinLIRC while foo_lirc is enabled and then press 'Connect' - fb2k crashes badly, often with the pitiful w95 
If i set `enable` off then on and press 'Connect' - it is ok.
As i can see, that's because of setting a hook in StartLircClient() when StopLircClient was not called and the hook is already hooked. The simplest solution I see is to keep a flag like HookSet and act accordingly not to try set hook twice.   
That was simple. Now to the sad part:
The plugin does nothing in my case! It configures perfectly, seeing all commands from WinLIRC and highlighting assigned actions. But besides that it does nothing. 
Spy++ shows those 'DEAD FEED' messages pass to fb2k main window.
It is something with those hooks too, I feel it  but the only w32 compiler i have is LCC and it knows nothing 'bout C++ so I'm just sitting aside 
BTW, is all this hooking The Only Right Way, or it can be done more straightly?
slight offtopic
The only reason I keep windows on that ancient box for - fb2k.
Digged the net many times, coudn't find nothing comparable to it.
But don't expect me to buy a new box with bloody XP inside just to control fb2k with remote.
Title: foo_lirc plugin
Post by: Phi on 2004-08-02 06:04:53
Quote
ding-ding, bug report here! 

OH NO!S!1 I'll have a look when I get a chance.  Most of my "bugfixes" have just been hacks on existing code, so I'll take the time to rewrite it in the next few days.

Quote
BTW, is all this hooking The Only Right Way, or it can be done more straightly?

There are definitely better/easier ways to do it. Posting messages to the main foobar window is pretty dodgy.

PS. come on, at least upgrade to an OS thats still supported by MS 
Title: foo_lirc plugin
Post by: jay7 on 2004-08-03 21:59:52
Quote
OH NO!S!1 I'll have a look when I get a chance.  Most of my "bugfixes" have just been hacks on existing code, so I'll take the time to rewrite it in the next few days.

Oh, I'm really sorry to bother you, but it's definitely unreal to run MSVC++ on my p1-166. There's no need to rewrite, just several fixes.

Quote
There are definitely better/easier ways to do it. Posting messages to the main foobar window is pretty dodgy.

Then let's take away all those hooks!
patch can be as following, although I can't check it
Code: [Select]
*** foo_lirc.cpp.old    Tue Jun 29 15:40:42 2004
--- foo_lirc.cpp    Tue Aug 03 23:55:22 2004
***************
*** 32,38 ****
 bool config_mode;
 HWND hConfigWindow;
 HWND hMainWindow;
- HHOOK lirc_hook;
 
 static HWND status_wnd;
 
--- 32,37 ----
***************
*** 129,135 ****
       }
       else
       {
!        SendMessage(hMainWindow, WM_REMOTE_KEY, 0xDEAD, 0xFEED);
       }
   }
     }
--- 128,134 ----
       }
       else
       {
!        g_actions.process_keypress(lirc.key_name);
       }
   }
     }
***************
*** 331,348 ****
 
 static cfg_action g_actions("Assigned actions");
 
- LRESULT CALLBACK LircHook(int nCode, WPARAM wp, LPARAM lp)
- {
-  PCWPSTRUCT msg;
-  msg = (PCWPSTRUCT)lp;
-
-  if (nCode == HC_ACTION && msg->message == WM_REMOTE_KEY &&
-      msg->wParam == 0xDEAD && msg->lParam == 0xFEED)
-  {
-      g_actions.process_keypress(lirc.key_name);
-  }
-  return CallNextHookEx(lirc_hook, nCode, wp, lp);
- }
 
 bool StartLircClient()
 {
--- 330,335 ----
***************
*** 355,366 ****
   return false;
     }
 
-  lirc_hook = SetWindowsHookEx(WH_CALLWNDPROC, LircHook, NULL, GetCurrentThreadId());
-  if(lirc_hook == NULL) {
-      MessageBox(hMainWindow, "Failed to set Hook", szAppName, MB_OK);
-      return false;
-  }
-
     lirc.thread_id = _beginthread(LircClient, 0, &lirc.socket);
     if(lirc.thread_id == -1) {
   MessageBox(NULL, "Failed to create thread, foo_lirc will be disabled.", szAppName, MB_OK);
--- 342,347 ----
***************
*** 371,377 ****
 
 void StopLircClient()
 {
-  UnhookWindowsHookEx(lirc_hook);
     lirc.client_running = false;
 }
 
--- 352,357 ----
Title: foo_lirc plugin
Post by: Phi on 2004-08-04 04:30:06
Quote
Quote
OH NO!S!1 I'll have a look when I get a chance.  Most of my "bugfixes" have just been hacks on existing code, so I'll take the time to rewrite it in the next few days.

Oh, I'm really sorry to bother you, but it's definitely unreal to run MSVC++ on my p1-166. There's no need to rewrite, just several fixes.

It's no bother, I've actually already done most of the work.

Quote
Then let's take away all those hooks!

Well, the whole point of posting messages to the main window (and hooking it to intercept them) was to ensure that process_keypress() (and subsequently, menu_manager::run_command()) was called from the main thread. I'm not sure how mm::run_command() actually works, and whether its safe to call it from the socket thread as you have done here.

Anyway, I've rewritten the code to use an asynchronous socket so this won't be an issue in the next release.
Title: foo_lirc plugin
Post by: Phi on 2004-08-06 16:21:40
Quote
Anyway, I've rewritten the code to use an asynchronous socket so this won't be an issue in the next release.

foo_lirc 0.3foo_lirc-0.3.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.3.zip)
foo_lirc-0.3-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.3-src.zip)
Title: foo_lirc plugin
Post by: Linkin on 2004-08-07 11:57:49
thx Phi

I appreciate your work
Title: foo_lirc plugin
Post by: Phi on 2004-08-08 06:43:37
Quote
thx Phi

I appreciate your work

No problem

foo_lirc 0.3.1foo_lirc-0.3.1.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.3.1.zip)
foo_lirc-0.3.1-src.zip (http://yallara.cs.rmit.edu.au/~kspear/foobar/foo_lirc-0.3.1-src.zip)
Title: foo_lirc plugin
Post by: jay7 on 2004-08-10 23:24:39
Hooray, it works! 
grabbed 0.3.1 and now I'm totally satisfied!
skipped 0.3 because of weekend, just didn't give it a try
Hooray to Phi!
Thanks, really.
Title: foo_lirc plugin
Post by: SBeaver on 2004-08-22 15:49:42
How do I set a button to scroll around in the playlist as if I had pressed up/down arrow?

edit: now have the cursor keys of my remote tied to previous/next playlist for right/left and works great. I'll try another program to bind the remote buttons up/down to cursor keys and see if that works better
Title: foo_lirc plugin
Post by: Phi on 2004-08-23 14:18:22
Yeah, unfortunately there are no standard commands available in foobar to scroll the playlist up and down.
Title: foo_lirc plugin
Post by: Betse on 2005-02-13 20:28:55
I know this is a bump from nowhere, but i really like this plugin.
Greatly appreciated here!
Keep up the good work
Title: foo_lirc plugin
Post by: Spi on 2006-03-20 21:53:59
wow, i didn't know of foo_lirc > 0.2  ;(
i only checked the sourceforge site.

but now im in need of a version for 0.9
Title: foo_lirc plugin
Post by: Betse on 2006-03-21 11:32:06
I've got to support you on that one  Foobar just isn't complete without it
Title: foo_lirc plugin
Post by: cirrus on 2006-04-05 21:08:47
Yeah. I really cant live w/o my remote. Anyone know how to fix it / know if there is any new version out?
Title: foo_lirc plugin
Post by: NeXT on 2006-05-06 19:39:04
Yes, please, somebody port it..
Title: foo_lirc plugin
Post by: Duble0Syx on 2006-05-06 19:49:46
I haven't switched to 0.9.x yet since I can't use my remote.  Had been using RM-X, but it doesn't look like it will be ported.  An LIRC plugin for 0.9.x would do the job nicely I think.  Hope it is ported.  Seems there is enough demand for it at least.
Title: foo_lirc plugin
Post by: neomcnasty on 2006-05-08 12:35:25
Hi, I also haven't finally swiched to foobar2000 v0.9.1, because of the lack of foo_lirc.
Phi, I really love your work, so please... 
Title: foo_lirc plugin
Post by: wazoo_999 on 2006-05-10 10:01:20
Here is the ported version.
I haven't used neither foo_lirc nor foobar sdk prior to version 0.9.1, therefore in some cases I had to make blind guesses when certain classes were missing or were too different. Please tell me if anything works incorrectly, I'll fix it if I can.
Link (http://esnips.com/doc/b828f8a8-0c30-47a0-91b4-d9f75340691e/foo_lirc_0.4_bin.zip)

Hi, I also haven't finally swiched to foobar2000 v0.9.1, because of the lack of foo_lirc.
Phi, I really love your work, so please... 
Title: foo_lirc plugin
Post by: Betse on 2006-05-10 17:04:26
Looks good, although i can't actually test it. Great work.
Title: foo_lirc plugin
Post by: SBeaver on 2006-05-10 20:28:20
It works very well!
I got all my buttons working with no hassle whatsoever.
Can't think of any more features that could be useful right now but if I think of any i'll let you know
Title: foo_lirc plugin
Post by: Duble0Syx on 2006-05-10 21:08:13
Wow, thank you!  Just installed this and it works great.  Using it with my ATI Remote Wonder.  Just downloaded a nice winLIRC plugin for the remotes software (http://remotew.free.fr/plugins.htm) and all is well.  Now I can finally switch to v0.9.x.  Still missing foo_dirwatch, but I can deal with it now that I have my remote.

EDIT:  Not sure if it is worth mentioning, but in the console when I press a button on my remote it is shown 6 times.  I have no idea what that means, if anything.  Seems though like pressing a button once would only put one line in the console.  This was the case using the same remote but with the winamp_spam plugin.  It is functioning correctly though.

EDIT2:  Seems not every button press is shown in the console 6 times.  Every press is shown more than once, some more time than others.  The forward button for exmple is shown 3 times, the back button 6.
Title: foo_lirc plugin
Post by: Spi on 2006-05-11 02:53:44
works fine for my needs .... thx very much
Title: foo_lirc plugin
Post by: lanosk on 2006-05-13 23:49:11
Seems pretty good to me, so far... thanks tons!

--lanosk
Title: foo_lirc plugin
Post by: neomcnasty on 2006-05-14 19:54:38
Hi, first thanks a lot for porting the plugin to 0.9.x, but i got a problem.
When I install the plugin I don't see an entry of foo_lirc in Preferences, so I can't configure this.
I hope you can help me, I got foobar2000 v0.9.1 and WinXP (I don't know if this does anything to the problem)

EDIT: I solved the problem, the WinLIRC entry is only visible if i install foo_converter.
Maybe you can solve this, or maybe it's an failure of foobar.
Title: foo_lirc plugin
Post by: wazoo_999 on 2006-05-16 08:15:11
Hi,

Fixed this issue in version 0.4.1, update is on this page (http://esnips.com/web/binaries/)

Hi, first thanks a lot for porting the plugin to 0.9.x, but i got a problem.
When I install the plugin I don't see an entry of foo_lirc in Preferences, so I can't configure this.
I hope you can help me, I got foobar2000 v0.9.1 and WinXP (I don't know if this does anything to the problem)

EDIT: I solved the problem, the WinLIRC entry is only visible if i install foo_converter.
Maybe you can solve this, or maybe it's an failure of foobar.
Title: foo_lirc plugin
Post by: Shaun_ on 2006-06-29 12:36:55
Does anyone know if it's possible to include keyboard commands?  That way one could use a button on the remote and assign it to page up, page down, return, up, down, etc. within the playlist?  Right now this plugin does everything I need except for the ability to navigate playlists.  Adding this feature would really make this plugin that much greater.  If it's not possible, how are some of you getting around this?


EDIT:  Possible bug?--Forgot to add, on a fresh start of foobar, button presses are quick and responsive.  Over several minutes/button presses of use, a delay builds up and the button presses lag noticeably more than at the start.  This happens only with foolirc (girder, irassistant, etc. all work fine), so it isn't a hardware problem I don't think.  Not too big of a deal, just pointing it out and wondering if anyone else has had this issue.
Title: foo_lirc plugin
Post by: radish on 2006-07-14 15:22:44
I seem to be having trouble using this plugin.
The plugin works, but I can only bind one key at a time!
So, if I bind volume up on the remote to something, I cannot bind any of the other keys!
Anyone have this problem before? I've tried several different remotes... Thanks in advance

-r

Edit:  Shaun, there is a commercial IR program called Girder which you can assign keypresses to buttons on your remote.  I hear there's a large learning curve, though.  Might be worth checking out.
Title: foo_lirc plugin
Post by: Betse on 2006-07-15 09:43:49
[..]

Edit:  Shaun, there is a commercial IR program called Girder which you can assign keypresses to buttons on your remote.  I hear there's a large learning curve, though.  Might be worth checking out.

With Girder you can practically do anything you can do with windows. Its a great program. The learning curve is a bit long, but after a few hours you can figure it out with some online manuals.
Title: foo_lirc plugin
Post by: Squeller on 2006-10-17 17:31:03
Maybe some girder geek in here: I use the latest free girder (its 3.2.9). Do you know, if I could achieve the following:

Toggle a state/ a variable between 0 and 1. If 0, do some action on another rc keys, if 1, do some other.

The idea is, because I have a "fast" button on my rc. So I want to be able to switch some other buttons between fast and slow modes. (i.e. scrolling buttons, forward/rewind buttons).

I couldn't find a help file or proper documentation for V3 yet.

Girder 4 is bloaty and way too expensive.
Title: foo_lirc plugin
Post by: Squeller on 2006-10-17 18:31:00
Solved it with a simple states toggle and by enabling/disabling groups.
Title: foo_lirc plugin
Post by: MrEnergizer on 2006-12-25 02:42:09
Thanks a lot Phi.
Is working great with my ATI Wonder.
One small request(Or maybe someone else knows how).
To be able to assign a button for Rating. (Rating tagging) Using foo_custominfo
TIA
Mr E
Title: foo_lirc plugin
Post by: MrEnergizer on 2007-01-08 14:57:48
*bump*
Further to above post. Any ideas on adding rating tags with "Remote Wonder" Control?
TIA
Mr E

Its ok I'v sussed it out 8 )
Title: foo_lirc plugin
Post by: wazoo_999 on 2007-05-16 11:02:44
I''ll add the context menus to the list of actions this weekend.

*bump*
Further to above post. Any ideas on adding rating tags with "Remote Wonder" Control?
TIA
Mr E

Its ok I'v sussed it out 8 )
Title: foo_lirc plugin
Post by: MrEnergizer on 2007-05-21 11:58:24
[quote name='wazoo_999' date='May 16 2007, 11:02' post='492430']
I''ll add the context menus to the list of actions this weekend.

Waiting in anticipation   
Title: foo_lirc plugin
Post by: MrEnergizer on 2007-06-05 16:11:24
~bump~
Hi Wazoo.  Still waiting on the context menus.
Will be much appreciated.  Thanks
Mr E.
Title: foo_lirc plugin
Post by: wazoo_999 on 2007-06-28 11:27:56
Hi All,

the update is at the usual place. I'm having slight issues with hierarchy of the main menus, I hope to fix it in the next point release.
http://esnips.com/web/binaries/ (http://esnips.com/web/binaries/)


~bump~
Hi Wazoo.  Still waiting on the context menus.
Will be much appreciated.  Thanks
Mr E.
Title: foo_lirc plugin
Post by: MrEnergizer on 2007-07-13 16:14:52
Firstly wazoo thx for the update....
Sorry to keep hassling but I don't use custom info for rating( Which is in new context menus) I use a masstagger script.
In preferences - 'Keyboard shortcuts' I have setup under  TYPE [context/now playing] and ACTION  Scripts : 1 rating, Scripts : 2 Rating etc. etc.
Is there some way to implement this in the context menu of Foo_lirc as it is missing at the moment. There is a 'scripts' with no list of my user scripts
I want to use my remote to rate tag my files.
Hope you understand.
Thx for your help.
Mr E
Title: foo_lirc plugin
Post by: edwardar on 2008-01-24 22:19:22
I just got an ATI remote wonder plus - thanks for this plugin - it's exactly what I needed!

I have found a small bug (I think):
I want one of my remote buttons to be the "play random" button in foobar. When I assign it in foo_lirc it there are 2 "random" commands, but both switch the playlist order to random (one of them is supposed to play random).

I guess this is just a naming problem - any chance of a fix?

Thanks again for a most useful plugin!

Ed
Title: foo_lirc plugin
Post by: askoff on 2008-08-17 19:27:13
Does foo_lirc work with the latest foobar 0.9.5.5 version? I have troubles with assigning commands to keys. I get lirc messages from my remote control, but can't assing any command for them.
Title: foo_lirc plugin
Post by: YoG on 2009-12-22 11:36:04
It doesnt seem to work with the latest Foobar beta 5    Are there plans for a new updated version?  I love this plugin !!
Title: foo_lirc plugin
Post by: faguriga on 2010-01-14 15:43:29
Foo_lirc_0.5.0a_bin.zip (http://www.esnips.com/web/binaries) works with foobar v1.0  .
Title: foo_lirc plugin
Post by: IRoN on 2010-02-01 17:28:48
if someone have latest sources or can download them from homepage - plz share it anywhere....
Title: foo_lirc plugin
Post by: YoG on 2010-06-26 12:00:01
Great plugin.. the latest version seemed to work well with Foobar 1.0.3, but after i installed some new plugins (probably the Foo_Bookmark one) FooLIRC will not execute commands that are newly added.
The LastFM 'love' command always worked fine, even with the latest Foobar and the latest version of FooLIRC. But i did some rework to my GUI and re-added the Love command but it doesnt work anymore. That also counts for other commands with different new plugins ive installed, such as FooBookmark

What a pity 
Title: foo_lirc plugin
Post by: YoG on 2010-06-26 12:35:31
Well, to be more specific: It doesnt work with some plugins after you re-add their specific command. So, its better not to touch your current configuration, untill someone comes up with a solution (which i doubt, the latest build of FooLIRC is dated somewhere in 2007)


Quote
if someone have latest sources or can download them from homepage - plz share it anywhere....

Its available to download from his project-page (http://www.esnips.com/doc/dc2d8473-7e69-432b-8988-e52b7a9243f3/foo_lirc_0.5.0)
Title: foo_lirc plugin
Post by: fishgrit on 2010-09-16 22:00:01
I have just upgraded to V1.1 and Foo_lirc no longer works for me. - I get
'Failed to load DLL: foo_lirc.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000/

Is there a solution to this?  Thanks Jeremy
Title: foo_lirc plugin
Post by: YoG on 2010-09-24 16:50:53
See the link above... 0.5 works ok.. dont touch your config
Title: foo_lirc plugin
Post by: Dave_Scream on 2011-02-22 10:04:12
Firstly wazoo thx for the update....
Sorry to keep hassling but I don't use custom info for rating( Which is in new context menus) I use a masstagger script.
In preferences - 'Keyboard shortcuts' I have setup under  TYPE [context/now playing] and ACTION  Scripts : 1 rating, Scripts : 2 Rating etc. etc.
Is there some way to implement this in the context menu of Foo_lirc as it is missing at the moment. There is a 'scripts' with no list of my user scripts
I want to use my remote to rate tag my files.
Hope you understand.
Thx for your help.
Mr E

Hi I found the solution.
1) Use SlyControl and make global hook of IR Control commands (for me its VOL+ and VOL-)
2) In windows.scs script file (SlyControl) add hook
Code: [Select]
    My2Remote = Hook( "REMOTE", "VOL-", Enabled, Break )
    {
        break( My2Remote<>0 )
        Keyboard( "PRESS", "Ctrl+Alt+Shift+[" )
    }

    My2Remote2 = Hook( "REMOTE", "VOL+", Enabled, Break )
    {
        break( My2Remote2<>0 )
        Keyboard( "PRESS", "Ctrl+Alt+Shift+]" )
    }


3) In foobar go to Keyboard shortcuts, select masstager script wich you want, press VOL- or VOL+, so foobar will receive pressed keys from SlyControl - "Ctrl+Alt+Shift+[" or "Ctrl+Alt+Shift+]".

Shure, using such global hotkeys is not good, better if foo_lirc "understand" masstagger or quicktagger scripts and showed them in assing menu.
Title: foo_lirc plugin
Post by: th0m on 2012-03-30 22:07:02
Could someone please upload version 0.5.0 to some other site than eSnips? I really need the plugin but can't get the stupid downloader to work.
Title: foo_lirc plugin
Post by: Jani on 2013-03-03 18:43:56
Here's the 0.5.0a version for anyone in need: http://www.mediafire.com/?0cw15jdwldskgwp (http://www.mediafire.com/?0cw15jdwldskgwp)
Title: foo_lirc plugin
Post by: derekpert on 2014-02-07 13:18:54
Here's the 0.5.0a version for anyone in need: http://www.mediafire.com/?0cw15jdwldskgwp (http://www.mediafire.com/?0cw15jdwldskgwp)

Thanks for that link!

Working PERFECTLY with: foobar200 1.3.1 | WinLIRC 0.9.0h | Event Ghost 0.4.1 r.1640 | Windows 8.1 x64

Why doesn't the developer of foo_lirc post that on the project page? It's WAY out of date there.


Title: Re: foo_lirc plugin
Post by: AndrewHeard on 2023-07-28 08:27:00
Does this component work with Foobar2000 v2? All components now have a .fb2k-component file type rather than .dll. This is exactly what I was looking for - wow. As well as the current category "other", I suggest you add "remote control". I found this component purely by accident & had missed it in an earlier search. v0.5.0a is still available at the mediafire webpage.
Title: Re: foo_lirc plugin
Post by: DonSonic on 2023-10-24 01:16:15
Does this component work with Foobar2000 v2? All components now have a .fb2k-component file type rather than .dll. This is exactly what I was looking for - wow. As well as the current category "other", I suggest you add "remote control". I found this component purely by accident & had missed it in an earlier search. v0.5.0a is still available at the mediafire webpage.
It does not and since it has been removed from the components page I am not very confident,
But there is an alternative: https://github.com/EventGhost/EventGhost/releases/tag/v0.4.1.r1722
The project seems to be discontinued for a while now but still works well. It has Lirc and foobar2000 plugins and can be used as a connector.

Another (simpler) solution would be global shortcuts in foobar2000 with the winlirc extension https://ramscan.com/irex which can translate the remote buttons to those shortcuts.