Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Multimedia keyboards + foobar2000: A complete guide (Read 192324 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Multimedia keyboards + foobar2000: A complete guide

[Version 0.00.2b RC1, written by ZoFreX]

If, like me, you have a multimedia keyboard, you probably want it to work with foobar2000. I've divided this up into two parts:

Part 1: Making the "launch multimedia application" button on your keyboard launch foobar instead of Windows Media Player.

Step 1: Associate foobar with .cda files however you see fit (from foobar's preferences is an easy way to do it). That's it!

Testing: Press the "launch multimedia application" button on your keyboard. If foobar is open it should jump to the foreground, if not it should open. If it worked, jump to the "It worked!" section. If it didn't, try the troubleshooting section and if it still doesn't work, try the "It didn't work!" section.

Technical note: Yes, Windows determines what program should be launched when you press "AppKey 16" (media player button) by what opens .cda files. It took a while to figure this out! This can actually be changed so it matches .mp3 files or whatever, just change HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\16\Association (I give no warranty whatsoever for fiddling with this, nor have I tested doing so).


Part 2: Making the media player buttons (play, stop etc) work when foobar is minimised.



Addendum A: Logitech SetPoint

Firstly, SetPoint is a horrible, poorly written program that I would strongly advise against having installed. However, you can get your media buttons working in foobar while it is minimised with a small alteration. Open up SetPoint's "players.ini" file, for me this is in C:\Program Files\Logitech\SetPoint\players.ini. At the bottom of the [players] list, add the line:
Code: [Select]
foobar2000=wac,foobar2000.exe,{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}/1,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,foobar2000

Restart SetPoint (i.e. exit it, and then start it again), and your keys should work, if you're using foobar v0.9.4.1. The window class will need to be changed if you are not, or if you're using a different user interface module - e.g. for columnsui, the classid would be {E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}. The best long-term solution is for you to know how to find out that classid, so read on:

I used Spy++ to find the classid, but not all of you will have Visual Studio installed so I checked out some of the free options. WinID was the easiest to use:




Step 1: Download, install and run WinID http://www.dennisbabkin.com/php/download.php?what=WinID

Step 2: With foobar2000 visible on screen and WinID in the foreground, mouse over foobar's title and press shift.

Step 3: WinID will now have taken a snapshot, click the "1" in the top left corner to view your snapshot.

Step 4: Copy the class from here into the players.ini line for foobar.

Step 5: Exit and re-open SetPoint. Your multimedia keys should now work for foobar when it's minimised!

If you want the media button to launch foobar then use the SetPoint software to bind that.

It didn't work!
So you've followed the instructions, tried the troubleshooting steps, and it still doesn't work. No worries. Post:
  • What didn't work
  • Whether the media keys work in foobar when it's focused
  • Your version of Windows
  • Your version of Foobar
  • What keyboard you're using
  • What drivers / software you have installed for your keyboard
  • Anything else you think might be relevant

It worked!
Great! If you have a Windows / foobar version different to one in the "Tried & Tested" section, post so I can confirm it on that.


Tried & tested on:
Windows XP SP2
Vista build 5744 (Part 1: setting file associations from inside Foobar on non-administrator account fails hard, setting .cda assocation to foobar through Windows makes the media application launch button work fine)
foobar v0.9.4.1

Multimedia keyboards + foobar2000: A complete guide

Reply #1
thanks a lot dude...

Multimedia keyboards + foobar2000: A complete guide

Reply #2
Thank you so much. It worked great on my Dell E1505 laptop (using the media direct keys). thanks a lot.

Multimedia keyboards + foobar2000: A complete guide

Reply #3
Cheers for this man, i've managed to get the play/stop/next/previous buttons working ages ago but never got the media button to open foobar instead :]

Multimedia keyboards + foobar2000: A complete guide

Reply #4
Just a note:

There is a known issue with Opera intercepting multimedia keys when the browser has focus.  The Opera Devs are aware and working on a fix.

Something to keep in mind if you're having button issues...

Multimedia keyboards + foobar2000: A complete guide

Reply #5
This trick works on my Logitech Desktop (MX3100) with Foobar2000 v0.9.4.1 and Win XP Pro 64-bit SP1 when Logitech's SetPoint sw is closed.

When SetPoint is running is foobar is minimized, this trick does not work. I don't want to miss the features of SetPoint (+ uberOptions) and still want to be able to contol other media players using my MM buttons.

Any idea how to accomplish that?

Thanks in advance

Multimedia keyboards + foobar2000: A complete guide

Reply #6
This trick works on my Logitech Desktop (MX3100) with Foobar2000 v0.9.4.1 and Win XP Pro 64-bit SP1 when Logitech's SetPoint sw is closed.

When SetPoint is running is foobar is minimized, this trick does not work. I don't want to miss the features of SetPoint (+ uberOptions) and still want to be able to contol other media players using my MM buttons.

Any idea how to accomplish that?

Thanks in advance



ZoFreX says:
Special.O, I installed SetPoint (which was a horrible, horrible experience) just for you! <3 Anyway, I updated the original post with a section on SetPoint, it's a little complicated but hopefully it'll work - let me know

Multimedia keyboards + foobar2000: A complete guide

Reply #7
I'm trying it now. LX700 Keyboard with setpoint and uberoptions. Foobar v0.9.4.1 with WinXP SP2. Did what you said and it doesn't work. It does work when it's on screen but not when it's minimized. Setpoint also doesn't recognize foobar2000 in the media player button options. It only lists Winamp, WMP, WMP10. I can manually set it to launch foobar.

It may be uberoptions. Though that just adds more abilities to Setpoint.

Multimedia keyboards + foobar2000: A complete guide

Reply #8
Works!

I use 2k3 x64 and SetPoint with Überoptions and your instructions worked as a charm

DiNovo Laser keyboard

Multimedia keyboards + foobar2000: A complete guide

Reply #9
I'm trying it now. LX700 Keyboard with setpoint and uberoptions. Foobar v0.9.4.1 with WinXP SP2. Did what you said and it doesn't work. It does work when it's on screen but not when it's minimized. Setpoint also doesn't recognize foobar2000 in the media player button options. It only lists Winamp, WMP, WMP10. I can manually set it to launch foobar.

It may be uberoptions. Though that just adds more abilities to Setpoint.


"I just re-installed SetPoint and installed UberOptions, and I haven't been able to recreate your problem (except foobar not showing in the drop-down list; that can be done but there's no real point). Please verify that you're using the correct ClassID using WinID, let me know how it goes!"

Multimedia keyboards + foobar2000: A complete guide

Reply #10
foobar2000=wac,foobar2000.exe,{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}/1,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,foobar2000

Pretty sure, I'm using ColumnsUI and plus the WinID matches.

Multimedia keyboards + foobar2000: A complete guide

Reply #11
Yay, my account is active! Thanks to everyone for their feedback so far

Laughing man, I've just realised what's wrong - the ID for Foobar sans ColumnsUI is "{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}/1", the ID for Foobar with ColumnsUI is "{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}" - the "/1" is part of the ID for Foobar, it shouldn't be there for ColumnsUI. Hope that helps!

Multimedia keyboards + foobar2000: A complete guide

Reply #12
It works! Thank you!

Multimedia keyboards + foobar2000: A complete guide

Reply #13
Thanks - the good news mean, I got the 'play/pause' button working in foobar at last  The bad news is the 'volume' buttons on the keyboard seem tied to adjusting Windows volume control and not foobar's volume...and I can't get the play/pause to work when foobar's minimised.  Anyway, here's the requested info - any suggestions appreciated:

    * What didn't work - nothing when foobar minimised, volume controls control windows volume control not foobar.
    * Whether the media keys work in foobar when it's focused - play/pause does
    * Your version of Windows - XP Pro
    * Your version of Foobar - 0.9.2
    * What keyboard you're using - microsoft natural ergo 4000
    * What drivers / software you have installed for your keyboard - MS intellitype

Multimedia keyboards + foobar2000: A complete guide

Reply #14
Intellitype? K. You'll have to hold while I find a Microsoft keyboard...

Multimedia keyboards + foobar2000: A complete guide

Reply #15
Intellitype? K. You'll have to hold while I find a Microsoft keyboard...


Thanks - let me know if you figure anything out.  I really like the MS natural keyboards as hardware, but the software sucks (MS is very inflexible in what you can programme the multimedia keys to do  )

One more thought - you *can* programme some keys to load a particular file - would there be a way to program a macro to press the appropriate key combo to pause/play foobar, adjust its volume, etc?  You can also set keys to run one of a list of commands, but nothing to do with foobar appears in the list.

Multimedia keyboards + foobar2000: A complete guide

Reply #16
If you can program keys to run a command you could program them to do things like

Code: [Select]
"C:\Program Files\foobar2000\foobar2000.exe" /playpause

Multimedia keyboards + foobar2000: A complete guide

Reply #17
If you can program keys to run a command you could program them to do things like

Code: [Select]
"C:\Program Files\foobar2000\foobar2000.exe" /playpause


Works great, thanks  Now, if you know the codes for volume +/-, and skipping tracks, that'd be really handy.

Multimedia keyboards + foobar2000: A complete guide

Reply #18
Step 4: Click in this box and press the button on your multimedia keyboard you want to associate with the shortcut. You should get something appearing here ending in (MM). If nothing appears, jump to the troubleshooting section.
Lol so this is where i've done wrong. Finally got my G15 MM button working for foobar. Thanks a lot. 

Multimedia keyboards + foobar2000: A complete guide

Reply #19
What a great guide!  Can I ask a question though...  How the tell do I change what my Multimedia Volume Control does?  Currently it's set to the wrong sound card, so is of little use.  Foobar calls the control ('Volume up (MM)' and 'Volume down (MM)')
This would be great to find out because I've searched the internet for months looking for this info...

Multimedia keyboards + foobar2000: A complete guide

Reply #20
What a great guide!  Can I ask a question though...  How the tell do I change what my Multimedia Volume Control does?  Currently it's set to the wrong sound card, so is of little use.  Foobar calls the control ('Volume up (MM)' and 'Volume down (MM)')
This would be great to find out because I've searched the internet for months looking for this info...

What keyboard / software / soundcards are you using?

To everyone who's wondering things: I managed to brick my computer with a bios update (go Asus!) hence the lack of updates - posting this from my dad's, who I'm visiting for the weekend. Hopefully I'll be up and running again soon!

Multimedia keyboards + foobar2000: A complete guide

Reply #21
Hi,

Its a standard wireless Dell keyboard, no software.  My sound card is an EMU 1820M.

Multimedia keyboards + foobar2000: A complete guide

Reply #22
Cheers! Works great with a wired Microsoft Natural Multimedia Keyboard!

Multimedia keyboards + foobar2000: A complete guide

Reply #23
Thanks - let me know if you figure anything out.  I really like the MS natural keyboards as hardware, but the software sucks (MS is very inflexible in what you can programme the multimedia keys to do  )


I had the same problem. Intellitype really sucks

Then I had a brainwave, or more likely a seizure. Remove Intellitype.

Sure enough the standard keys still work (this is on XP SP2) and now the media keys work when foobar is minimized. I don't have volume keys on this version of the keyboard so can't help there.

Bit late in the day, but it might help.


Meddler

Multimedia keyboards + foobar2000: A complete guide

Reply #24
I have a wireless HP keyboard that came with the computer. There doesn't appear to be any software to configure keys.

The keys work when foobar is in focus, but without configuring it. No multimedia button presses are recognised by foobar in the shortcut configuration box.

I'm using Windows XP SP2, with foobar v0.9.4.2.