HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Luckz on 2006-11-11 03:35:37

Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Luckz on 2006-11-11 03:35:37
[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:

(http://www.uploadthis.co.uk/uploads/ZoFreX/WinID_01.png)
(http://www.uploadthis.co.uk/uploads/ZoFreX/WinID_02.png)

Step 1: Download, install and run WinID http://www.dennisbabkin.com/php/download.php?what=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:
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
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: CIBERUS on 2006-11-11 18:24:46
thanks a lot dude...
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: kanak on 2006-11-11 18:41:52
Thank you so much. It worked great on my Dell E1505 laptop (using the media direct keys). thanks a lot.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: int on 2006-11-11 18:53:19
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 :]
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: DijiDiji on 2006-11-11 21:32:20
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...
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Special.O on 2006-11-11 22:28:29
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
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Luckz on 2006-11-12 15:57:19
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
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Laughing Man on 2006-11-13 04:17:10
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.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: olmari on 2006-11-13 08:03:57
Works!

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

DiNovo Laser keyboard
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Luckz on 2006-11-14 18:32:05
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!"
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Laughing Man on 2006-11-16 00:27:07
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.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: ZoFreX on 2006-11-16 22:23:55
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!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Laughing Man on 2006-11-17 01:28:35
It works! Thank you!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Jon_MM on 2006-11-17 16:41:04
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
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: ZoFreX on 2006-11-17 17:22:00
Intellitype? K. You'll have to hold while I find a Microsoft keyboard...
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Jon_MM on 2006-11-19 14:59:34
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.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: ZoFreX on 2006-11-19 19:16:48
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
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Jon_MM on 2006-11-20 00:40:09
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.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: amonrei on 2006-11-26 04:49:07
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. 
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Funkstar De Luxe on 2006-12-01 16:54:18
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...
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: ZoFreX on 2006-12-03 14:38:14
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!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Funkstar De Luxe on 2006-12-03 14:46:38
Hi,

Its a standard wireless Dell keyboard, no software.  My sound card is an EMU 1820M.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Smitty2k1 on 2006-12-04 21:33:41
Cheers! Works great with a wired Microsoft Natural Multimedia Keyboard!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Meddler on 2007-01-07 10:42:03
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
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: PredUK on 2007-01-07 12:54:21
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.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: MiSP on 2007-01-07 22:52:46
This didn't work for me.

- The media buttons (F5-F8 while holding the Fn key) doesn't work globally
- They work when foobar is focused
- OS: Windows XP SP2
- I'm usingFoobar 0.9.4.2
- Keyboard: Logitech DiNovo Edge
- Drivers: SetPoint

I have done the WinID trick and added the line you posted (with the right ClassID) to the bottom of the [players] section of the players.ini.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: MiSP on 2007-01-07 23:12:33
Oh, nevermind, it works now. I just pointed the cursor at the wrong part of the foobar window when taking the snapshot.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: stanace on 2007-01-24 02:46:48
Ah.. I have a twist to the problem here...

I'm running Windows XP Media Center Edition so the "Play/Pause" button doesn't execute Windows Media Player, but instead, it runs Media Center.

I've tried all the solutions you've given but they've all failed. Even when I change the file association to AppKey 16, it still runs Media Center. Heck, I've even tried replacing it with a ShellExecute key leading to fb2k. Still didn't work.

Does anybody have a clue as to how I could stop Media Center from executing and have fb2k run instead?
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 05:57:04
http://www.randyrants.com/sharpkeys/ (http://www.randyrants.com/sharpkeys/)

The program sharpkeys may help you. I've used this program to correct assignments for volume and media button keys on my non-microsoft keyboard. Sharpkeys makes a registry hack for you (you could do it by hand, but Sharpkeys knows most of the scancode assignments). You could possibly re-assign your media keys to send other scancodes. Then make the 'new' keys work with Foobar2000. This may be unnecessary if you can otherwise disable WMP WMC from starting.

Do you have MS IntelliType installed? I installed it despite having a third party keyboard. After maping my (non-standard mapped) media keys to 'standard' scancodes, IntelliType let me do all kinds of one-press macros, or keystrokes. I can also disable the extra keys. Mostly, I like that my volume keys work with an OSD display—all programs. Foobar2000 has separate volume control key assignments and a different OSD display that won't interfere with my muliti-media keys.
Quote
(http://img252.imageshack.us/img252/9655/intelli6kb.png)
I'm unfamiliar with Windows XP Media Center, so I don't know what other factors play into this. I have XP Pro.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: stanace on 2007-01-24 06:12:34
Thanks for the suggestion Danny_8, but it doesn't seem SharpKeys will fix the problem. The keys are already correctly mapped.

As for MS Intellitype, it doesn't seem to work either.
It seems that the multimedia keys are dependent on the Toshiba hotkey.exe process.
However, the multimedia keys ("Play/Pause", "Stop", "Next", "Previous") cannot be configured.

The scenario here is:
No media player running:
"Play/Pause" Key, On press --> Starts up Media Center

foobar already running, w/o Media Center:
"Play/Pause" Key, On press --> Starts up Media Center

foobar AND Media Center already running:
"Play/Pause" Key, On press --> Plays/Pauses media in foobar.

So basically everytime I want to use the "Play/Pause" hotkey for foobar, I need to have Media Center running first. That's not really something I appreciate.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 06:27:15
Ah, well.

Does it make sense to try and map them improperly?
Have you looked on thegreenbutton.com (WMC enthusiast web site) ?

I would also consider disabling the Toshiba process. It may not be necessary.

I'm curious if you like WMC otherwise. It looks neat to me but I haven't lived with it. If I had the moolah I cough up and buy myself a notebook with WMP pre-installed before Vista comes out. I like the Fujitsu models.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 06:37:39
Does the control panel Set Program Access and Defaults have any effect?

It is part of the Add and Remove Programs control panel.

I'm grasping at straws here.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: gfngfgf on 2007-01-24 06:37:43
I used to have the media keys working on my real old Toshiba laptop while running its hotkey process (on my computer, it was called something like tfncky.exe...not too sure).

Anyway, my laptop's software included an applet in the Control Panel where I could select what my default media player, CD player, and DVD player were.  If your computer's software is similar, then a simple registry edit is necessary to create an entry in that applet for foobar2000.  Here's the registry file I used:

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\TOSHIBA\Services\Audio\1]
"Name"="foobar2000"
"Path"="foobar2000.exe"
"WindowName"="foobar2000 v0.9.4.2"
"WindowClass"="{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}"

[HKEY_LOCAL_MACHINE\SOFTWARE\TOSHIBA\Services\CD\1]
"Name"="foobar2000"
"Path"="foobar2000.exe"
"WindowName"="foobar2000 v0.9.4.2"
"WindowClass"="{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}"
There are instructions in the first post of this thread to find the correct "WindowClass" (classid) you'd need (I use ColumnsUI).  Also, I'm pretty sure that you should change "Path" to be the complete path to foobar2000.exe.  From what I remember, foobar2000 wouldn't start if I just pressed Play/Pause, but the buttons would work just fine otherwise.  (It's been a while since I've used my laptop  )
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: stanace on 2007-01-24 06:38:35
@danny_8:
Ah, I guess I forgot to mention I'm on a Toshiba laptop.

If I disable the hotkey.exe process, all the multimedia hotkeys cease to function. So I would ASSUME that it's necessary until proven otherwise.

As for mapping the keys improperly intentionally, I'm not quite sure what else I'd map the keys to...

I actually have already created a similar thread on thegreenbutton.com, although I haven't gotten many replies yet.

I personally am not too fond of Windows Media Center, mainly because I don't hook up my computers to TVs. Another thing I don't really like about WMC is that I can't really customize it to look different or fit in with my desktop. It's awfully 'user-friendly' so theres barely anything you can really configure.

@gfngfgf:
Well, it seems like my Toshiba laptop runs different software from yours. In fact, that registry directory doesn't exist in my computer and there was never an option to select the default media player, etc. It's really frustrating to not be able to find a solution to a problem like this. None of the existing resolutions seem to work for Windows XP MCe...
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: stanace on 2007-01-24 06:48:41
Does the control panel Set Program Access and Defaults have any effect?

It is part of the Add and Remove Programs control panel.

I'm grasping at straws here.


I've actually already tried that earlier. Disabled everything media center related. Still no luck. Media Center still launches. 
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 06:52:15
I would disable hotkey.exe and experiment a bit. You can always re-enable it later. Are you using startup.cpl or some other startup-managing software?

The media keys may 'cease to function' but I believe they'll still continue to send scan-codes. See if they do. If they do, you can use whichever driver software you wish (within reason). Assuming hotkey doesn't perform some other critical function like temperature monitoring, you could jettison it.

Some folks were ripping Intellitype earlier in this thread but I think it's better than all third-party keyboard drivers I've ever installed, and I've messed with quite a few. Definitely don't try to layer several keyboard drivers, however. Choose one.


I didn't scrutinize the solution proposed at the thread start, but it seems more complicated than necessary. I'm going to read it carefully to be sure.

Anyway, good luck whatever you try!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: stanace on 2007-01-24 06:56:21
I guarantee you hotkey.exe is a necessary process. In fact, even my function key fails to operate once I terminate it. Disabling the function key isn't exactly a good idea on a laptop.

Also, the next and previous keys still work on foobar, and it does so without launching Media Center. But once I terminate hotkey.exe, they too fail to function.

How do I check if a key sends scan-codes btw?
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 07:20:17
Yep, I did realize you were running a Toshiba notebook from the outset.
Quote
In fact, even my function key fails
I guess you're talking about the modifier key that allows you to emulate the numeric keypad while pressed. Your F1 thru F12 still work, I hope. That would suck! I see your reluctance to disable hotkey.exe and I don't fault you for it.

You said you didn't know what other key you'd assign if 'improper' assignment was attempted. The idea was to make some other assignment—there are many unused scan-codes. But really, you want to use one that MS uses in one of their products. Something like 'copy' or 'paste'. Then, you'd use Intellitype to assign a function to that key. With a little luck, media player wouldn't launch, but your action would.

I know of several programs that will help reveal when keys are pressed. Sharpkeys will, of course. I would disable hotkey.exe, experiment with sharpkeys, and take some notes. Possibly the Fn issue (assuming I ID-ed that correctly) could be worked around. One might enable hotkey, check the scancode for Fn. Then disable hotkey, and re-check the code. [edit: see next post] As part of the key-realignment, re-assign the correct scancode to Fn. Final solution has alternative driver (Intellitype or some other) making desired result from re-mapped keys (registry hack assisted by sharpkeys). No CLASSIDs are used.

The other one (scan code revealer) that comes to mind is TweakUIXP, which is excellent for other reasons. TweakUI won't show you actual codes but if a 'mystery' key is the same as one of the Microsoft keyboard keys, it will scroll to that function. In fact TweakUIXP can be used to make assignments to a limited degree.
Quote
(http://img413.imageshack.us/img413/8076/tweakui5dl.png)
Hope this helps. I had a similar issue with my Chicony keyboard driver always launching IE when I didn't want it to.
I worked through it (two years on and off) only after I found sharpkeys.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 07:52:44
I said check the scan code for Fn. I think I mean check the scan codes for all the numeric keys while Fn is depressed. It really helps to make some notes on paper while you do this.

You should be able to do what you desire (get your media keys to behave) but you may have to re-map a dozen or more keys (media keys and possibly numeric keypad keys) to make it happen. Possible fly in the ointment: will the brightness and ancillary functions require hotkey.exe? It'd be real nice if they didn't.  Don't give up!

Oh yeah, I hate the fact that my USB keyboard won't power-on my system, but my (relatively crappy) PS/2 keyboard will! I use the PS/2 'cause I really need that feature to work. I mean, my CPU's like three feet away!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: stanace on 2007-01-24 14:12:00
This is very strange. After using SharpKeys to help detect scancodes, I realized that my multimedia keys are recognized differently when pressed with/without the function modifier key.

On press -
"Media: Play/Pause" only:
SharpKeys can't detect.

"Media: Play/Pause" with Fn modifier:
SharpKeys recognizes scancode as "Media: Play/Pause"

I get similar results with all the other multimedia keys on this laptop. The Launch Media player button, which is configured to launch the calculator, launches Windows Media Player when pressed with the Fn modifier down.
SharpKeys can't seem to detect most of the Fn key features and when hotkey.exe is terminated, most of the Fn keys fail to work. Brightness +/- happens to be an exception though.
Supposedly though, if I can figure out the scancode for the "Play/Pause" key without the Fn modifier, then I could remap it to "Media: Play/Pause".

Now, you might be wondering why I have a launch media player button and not have it configured to launch foobar but the issue here is that I can't seem to use the "Play/Pause" button without first launching Media Center. Also, under ideal conditions, the "Media:Play/Pause" button should be able to launch an instance of foobar (NOT Media Center) when one does not already exist.

Thanks for all the help danny_8.
Maybe I should try something outrageous like installing foobar into the Media Center folder and then replacing the media center exe with the foobar one. 
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: stanace on 2007-01-24 14:27:17
Seems that when I have foobar associated to .cda, I can use the "App: Media Player" key to launch foobar. However, the computer will only recognize it as the "App: Media Player" key when the Fn key is depressed. When it isn't, it's an unknown key that SharpKey can't seem to find the Scancode for.

The same goes for the "Play/Pause" key. The computer will recognize the "Media: Play/Pause" key is being depressed only when the Fn key is also depressed. Otherwise, it'll just launch Media Center like it always does.

So basically, the hotkeys work, but I have hold down the Fn modifier key first everytime I want to have the "Play/Pause" key work the way its supposed to.
Still can't launch foobar with the "Play/Pause" key like my other computer can though.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: odyssey on 2007-01-24 15:09:49
Speaking of Logitech, does anyone know of a program which let's you modify the display on the DiNovo MediaPad? I'd like to display the current song playing.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 16:52:50
Quote
After using SharpKeys just now help detect scancodes, I realized my multimedia keys are recognized differently when pressed with/without the function modifier key.
Yeah, that makes sense. I noticed that sharpkeys cannot detect my media keypresses once Intellitype is running.

It's been quite a few months since I re-aligned my keyboard, but one thing I do remember is a lot of head-scratching. I believe I had to uninstall my (3rd party) keyboard driver (and Intellitype was not yet installed) before I could make sense of my keyboard. Sharpkeys is imperfect but still useful. If you look around the web, you see lots of folks have similar or identical issues to what you're experiencing. Hardware manufacturers are not especially concerned once they get their product out the door and as long as it doesn't crash. Margins are slim so they don't justify the programmer effort. The worst thing is when they farm out their software requirements to a lame-brain third party.

I think MS ought to provide a universal keyboard macro/customizer that works will all hardware. That would benefit more users than Aero. Same goes with mouse drivers. I have a logitech trackball I love except for the d@mn driver software that comes with it. The driver hangs my computer when I awaken from sleep/standby mode (not often used). Logitech spams me but won't respond to tech inquiries or fix their driver. My wrist problem got better so I went back to my MS mouse.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 17:26:36
Just to ensure full disclosure I should have stated I continue to use my media keys for their 'normal' use to control WMP. I recently got into Foobar again (getting DSL renewed my appetite for internet radio) and I've been hanging out here trying to understand various plugins.

It occurred to me that I should try to map my media keys to Foobar similar to what you are trying. I had the same problem with WMP launching. I could disable Intellitype (don't really want to) and it would behave. My solution was to allow intellitype to run but disable the media keys. Now at least I got my system to work with Foobar 2K attached to my media keys. I do have to launch FB manually before the keys work. And I haven't lived with this arrangement, so there may be other issues. Hey, maybe I'll use this for a while! I hardly even use WMP except to watch the occasional *ahem* video.

One thing I dislike about Intellitype is you have to choose which MS keyboard you wish to emulate. What if you want to take a key from here ("copy" from Office keyboard) and a key from there[/b] (MM key from a different keyboard)? S-O-L!
Quote
(http://img252.imageshack.us/img252/149/intellimk6cv.png)
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: danny_8 on 2007-01-24 17:40:13
Quote
Still can't launch foobar with the "Play/Pause" key like my other computer can though.
One way to do this is to bind the desired key to a Windows shortcut using your keyboard driver. (Instead of binding that key to a Foobar function using Foobars preferences panel.) The shortcut would look something like this:

"c:\program files\foobar2000\foobar2000.exe" /play

"play or pause" is probably a better choice. Unsure of the exact syntax. My latest riff is trying to develop command scripts for Foobar to open radio stations. It's a challenge for me. Here is the command line reference page: http://wiki.hydrogenaudio.org/index.php?ti...mmandline_Guide (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Commandline_Guide)

This is probably not worth the trouble but I thought I mention it. I'm sticking with the simple 'prefs page bind' for myself.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: ZoFreX on 2007-01-24 18:58:35
Hi,

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

Did you get volume working? (Sorry for not replying for so long) You said the volume control modifies the wrong sound card - what other sound cards have you got and are you using them all? If not I'd advise disabling all but the one's you are using.

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.

Danny_8 suggested something called sharpkeys, I guess you could give that a whirl:

http://www.randyrants.com/sharpkeys/ (http://www.randyrants.com/sharpkeys/)

The program sharpkeys may help you. I've used this program to correct assignments for volume and media button keys on my non-microsoft keyboard. Sharpkeys makes a registry hack for you (you could do it by hand, but Sharpkeys knows most of the scancode assignments). You could possibly re-assign your media keys to send other scancodes. Then make the 'new' keys work with Foobar2000.


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

See post above this one.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: AlexVallat on 2007-03-02 18:35:12
Interesting SetPoint hacking

I've been using a Logitech keyboard with multimedia keys successfully for a while now, by not having SetPoint installed, but recently got myself a Logitech mouse too. Now I need to have SetPoint running, and it grabs hold of control of the keyboard too, ruining all the multimedia keys which used to work just fine.

I've been hacking about with SetPoint for some time, and come across the following. If you close SetPoint, then open your settings file in \Documents and Settings\username\Application Data\Logitech\SetPoint\user.xml, you should find a Device element with the DisplayName of your keyboard, and Class="KeyboardDevice". In it, there are a bunch of Button elements, with nice descriptive Names. Find the buttons you want to fix, and for each one, look inside the Trigger element for a Param element which has an attribute Silent="0". Change that to Silent="1". Once you've done that to all the media buttons you want to fix, save the file, and start SetPoint again. Those buttons with Silent="0" you can still set the behaviour for in SetPoint (which is handy for those buttons which don't have a standard behaviour), and those buttons with Silent="1" behave as if SetPoint was not running. Result!

Hope this is useful to others too,

Alex
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: SSiemens on 2007-03-09 17:40:03
Hi, I'm from Russia so, sorry for my mistakes. I've got some troubles with it:)
So, my keyboard is Defender Wireless Multimedia Keyboard. When I'm trying to make hotkey, there are no actions in the window (in menu I mean).
So me driver is standart (MK02014 Multimedia Keyboard Driver). When I push some multimedia keys it opens mediaplayer, and with medaiplayer it works...
But, I like foobar)
So, here is a photo of my stuff http://www.defender.ru/products/klaviatury...-nabory-/12002/ (http://www.defender.ru/products/klaviatury-i-nabory/besprovodnye-klaviatury-i-nabory-/12002/) (sorry for russia)
Thanks a lot...
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: ChronoSphere on 2007-03-18 14:38:56
There is an alternative for the Logitech SetPoint settings:
In players.ini, add these lines
Code: [Select]
[Players]
<other entries here>
foobar2000=cmd,foobar2000.exe,{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}/1,xxx,xxx,40009,40044,40010,40051,40011,0,1,foobar2000

[Players.Run]
<other entries here>
foobar2000=path,<path to the foobar dir>

[Players.Display]
<other entries here>
foobar2000=foobar2000


The difference to the other method is, that the keys are working no matter in which state foobar is (minimised, in background...), it shows up in the SetPoint key configuration and ... doesn't seem to work with ColumnsUI u.u (at least for me)
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: gfngfgf on 2007-03-18 17:32:05
doesn't seem to work with ColumnsUI u.u (at least for me)

This method is mentioned in the first post (Addendum A).  You need to edit the window class to match the one that Columns UI uses (instructions in the first post).
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: ChronoSphere on 2007-03-18 18:13:06
This method is mentioned in the first post (Addendum A).  You need to edit the window class to match the one that Columns UI uses (instructions in the first post).
No, look carefully: (first line, Addendum A; second - mine)
foobar2000=wac,foobar2000.exe,{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}/1,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,foobar2000
foobar2000=cmd,foobar2000.exe,{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}/1,xxx,xxx,40009,40044,40010,40051,40011,0,1,foobar2000

I tried changing the class to the ColumnsUI one, doesn't work, all keys stop working. Maybe ColumnsUI uses different cmd IDs <.<
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: PedroQ on 2007-03-18 18:28:05
For those using Columns UI:
Code: [Select]
[Players]
foobar2000=wac,foobar2000.exe,
{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8},xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,foobar2000


HTH
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: alphameric on 2007-04-09 22:21:04
Interesting SetPoint hacking


this is exactly what i needed.
the typical classid method outlined elsewhere does not work for Panels UI.
For your method, all i had to do was set the media buttons to silent, then boot up setpoint.
After that foobar recognized my media keys and i could set them globally   
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: knocker on 2007-05-03 19:28:39
Interesting SetPoint hacking

I've been using a Logitech keyboard with multimedia keys successfully for a while now, by not having SetPoint installed, but recently got myself a Logitech mouse too. Now I need to have SetPoint running, and it grabs hold of control of the keyboard too, ruining all the multimedia keys which used to work just fine.

I've been hacking about with SetPoint for some time, and come across the following. If you close SetPoint, then open your settings file in \Documents and Settings\username\Application Data\Logitech\SetPoint\user.xml, you should find a Device element with the DisplayName of your keyboard, and Class="KeyboardDevice". In it, there are a bunch of Button elements, with nice descriptive Names. Find the buttons you want to fix, and for each one, look inside the Trigger element for a Param element which has an attribute Silent="0". Change that to Silent="1". Once you've done that to all the media buttons you want to fix, save the file, and start SetPoint again. Those buttons with Silent="0" you can still set the behaviour for in SetPoint (which is handy for those buttons which don't have a standard behaviour), and those buttons with Silent="1" behave as if SetPoint was not running. Result!

Hope this is useful to others too,

Alex


Thats definitely useful, works perfectly! Thanks alot ~

PS: I quoted the whole post so people dont have to look for it
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: math on 2007-06-15 02:53:34
I've been hacking about with SetPoint for some time, and come across the following. If you close SetPoint, then open your settings file in \Documents and Settings\username\Application Data\Logitech\SetPoint\user.xml, you should find a Device element with the DisplayName of your keyboard, and Class="KeyboardDevice". In it, there are a bunch of Button elements, with nice descriptive Names. Find the buttons you want to fix, and for each one, look inside the Trigger element for a Param element which has an attribute Silent="0". Change that to Silent="1". Once you've done that to all the media buttons you want to fix, save the file, and start SetPoint again. Those buttons with Silent="0" you can still set the behaviour for in SetPoint (which is handy for those buttons which don't have a standard behaviour), and those buttons with Silent="1" behave as if SetPoint was not running. Result!


This is THE method for dealing with Setpoint, don't bother with all that other complicated id stuff...  this is easy and works.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Pingue on 2007-06-15 12:34:54
Has anyone got any idea how to un register such keys from WMP. I have an Acer Laptop with media keys only with the Fn button, but they still only register to WMP. at the moment, I'm just using Ctrl-Alt instead of Fn. Are there some registry values to get rid of this??? Thanks!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: sandeep108 on 2007-06-15 12:40:41
Nice post. But problem is there with MS Intellitype. I see no point in disabling the MM keys just to get them working when fb2k is minimised. Then in other media players they do not work. Rather leave fb2k window open and they work just fine. Of course volume is still tied to windows volume and not fb2k, but well, how much does that matter?
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: MiSP on 2007-06-15 16:19:30



I've been hacking about with SetPoint for some time, and come across the following. If you close SetPoint, then open your settings file in \Documents and Settings\username\Application Data\Logitech\SetPoint\user.xml, you should find a Device element with the DisplayName of your keyboard, and Class="KeyboardDevice". In it, there are a bunch of Button elements, with nice descriptive Names. Find the buttons you want to fix, and for each one, look inside the Trigger element for a Param element which has an attribute Silent="0". Change that to Silent="1". Once you've done that to all the media buttons you want to fix, save the file, and start SetPoint again. Those buttons with Silent="0" you can still set the behaviour for in SetPoint (which is handy for those buttons which don't have a standard behaviour), and those buttons with Silent="1" behave as if SetPoint was not running. Result!


This is THE method for dealing with Setpoint, don't bother with all that other complicated id stuff...  this is easy and works.

I just tried this, and can confirm that it works perfectly. Note that using Logitech DiNovo Edge, the keys to be changed is Name=F5 to Name=F8 - there's no nice descripting names for "next" or "previous" or the likes unless you dig a little deeper.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Mesingel on 2007-07-20 22:18:32
Interesting SetPoint hacking

I've been using a Logitech keyboard with multimedia keys successfully for a while now, by not having SetPoint installed, but recently got myself a Logitech mouse too. Now I need to have SetPoint running, and it grabs hold of control of the keyboard too, ruining all the multimedia keys which used to work just fine.

I've been hacking about with SetPoint for some time, and come across the following. If you close SetPoint, then open your settings file in \Documents and Settings\username\Application Data\Logitech\SetPoint\user.xml, you should find a Device element with the DisplayName of your keyboard, and Class="KeyboardDevice". In it, there are a bunch of Button elements, with nice descriptive Names. Find the buttons you want to fix, and for each one, look inside the Trigger element for a Param element which has an attribute Silent="0". Change that to Silent="1". Once you've done that to all the media buttons you want to fix, save the file, and start SetPoint again. Those buttons with Silent="0" you can still set the behaviour for in SetPoint (which is handy for those buttons which don't have a standard behaviour), and those buttons with Silent="1" behave as if SetPoint was not running. Result!

Hope this is useful to others too,

Alex
YOU TOTALLY PWN !
At last, after 2 days of (intensive) browsing, I finally found someone who struck the answer, AND ACTUALLY CARED TO SHARE IT!
<3 Alex!

Oh yeah, I use a UltraX Cordless Desktop, and it worked like a charm.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: trackfan504 on 2007-07-21 05:44:03
Interesting topic! Got everything working by reading through entire post but dang volume control.

Setpoint 4.0
Logiblech S510
XP Sp2
Foobar 9.4.3
columns ui 0.13 beta

Once I figured out to use notepad.exe to edit user.xml instead of Iexploder I for sure thought inserting "1" to volume up/down silent trigger did the trick!
When in try to configure fb keyboard shortcuts and press volume + or - nothing shows up in Key box. 

Also learned it pays off to first read entire post before banging your head against the wall for little switches like /1 

Any other tips to get volume button to behave?

Using e-mu 1820m pci soundcard if that makes any difference.
Cheers
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: AlexVallat on 2007-07-21 08:06:47
Thanks for the kind words, Mesingel!

trackfan504, the volume buttons work for me (Logitech Media Keyboard Elite), so in principle there's no reason why they shouldn't work.

Things to try:
Alex
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: trackfan504 on 2007-07-22 06:41:38
trackfan504, the volume buttons work for me (Logitech Media Keyboard Elite), so in principle there's no reason why they shouldn't work.

In principle...I should have figured this out by now

 

Things to try:Alex
[/quote]
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: AlexVallat on 2007-07-22 08:07:09
  • Do the volume keys actually change the main volume control when SetPoint is not running? No

That would seem to suggest that the keyboard is not actually sending volume up and volume down keypresses when those keys are pressed. Which in turn suggests that they will only work with SetPoint handling them, as they aren't normal buttons but some sort of custom hardware that only SetPoint can detect. Bad news, I'm afraid.

Getting a bit off-topic with the standby, but you might look into the device properties of the keyboard (and mouse, if SetPoint controlled) in the device manager, and unchecking "Allow this device to bring the computer out of standby" on the "Power Management" tab.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: trackfan504 on 2007-07-22 19:58:41
  • Do the volume keys actually change the main volume control when SetPoint is not running? No

That would seem to suggest that the keyboard is not actually sending volume up and volume down keypresses when those keys are pressed. Which in turn suggests that they will only work with SetPoint handling them, as they aren't normal buttons but some sort of custom hardware that only SetPoint can detect. Bad news, I'm afraid.

As mentioned, I tried volume control either with or without running Setpoint. Since it doesn't work in either with foobar or any other media player I suspect hardware is kaput. 

Getting a bit off-topic with the standby, but you might look into the device properties of the keyboard (and mouse, if SetPoint controlled) in the device manager, and unchecking "Allow this device to bring the computer out of standby" on the "Power Management" tab.


Anything researched has been tried to make S3 get along with logitech, from reg hacks to dumppo.exe, nic adapter switches, USB and contol devices enabled/disabled/installed/uninstalled.  PC either gets to S1 (fans and HDDs spinning), freezes with 'preparing for standby' greeting or starts right back up. I have a lot of gear hanging off this machine, midi controllers, instruments, e-sata drives, NAS and network printer. I am prolly reaching and therefore just gave up. I suspect a few applications such as Cubase 4 or Acid Pro may mess with volume control from this keyboard. I'm chasing this one more out of interest (the inner geek) since I use  Mackie's Big Knob to change levels. Thanks again!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Thanasis159 on 2007-07-27 12:51:01
I did what you said in Addendum A but it didn't work for me. I have Logitech EX110 wireless desktop( keyboard and mouse), I am using windows xp service pack 2 with all the latest updates, my foobar version is 0.9.4.3, the multimedia buttons work when the foobar window is focused but not when it is minimized or another window is focused. I use columns ui along with many other plugins. Any help appreciated!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Manic on 2008-11-08 03:20:35
Beautiful!! can confirm that it works perfectly with a Dell USB enhanced multimedia keyboard on Vista Business. The embedded multimedia buttons on my Toshiba Satellite Pro U200 also seem to work without any extra configs, except for the launcher, which insists on opening WMP. 

To make foobar open instead of WMP youll also need to go to the Control Panel and change the default app for .cda there, as well as in foobar 2k.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: aziz on 2008-11-08 19:23:27
Thank you very much brotha!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: foshelan on 2008-11-08 21:31:31
Thank you buddy
It's really a great and detailed manual that I search
This gives me a lot of help
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Mangix on 2008-11-09 08:06:10
i have an hp keyboard. i have the drivers and playback buttons work. but only when foobar2000 is in focus. if i try adding the playback keys as global shortcuts, foobar2000 can't add them for some reason. foo_appcommand made it work but foo_appcommand doesn't work with foobar2000 0.9.6. any ideas on how to get it to work?
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Paft on 2009-05-19 13:00:46
Hello,

at default media keys work, but only when in focus. Setting the keys then setting 'global' forces to use them for foo regardless of what other app is in focus. So both ways are as useless as each other to me. No way to get it to work like, erm, normal? It is such a minor issue but one that is stopping me from using it.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Paft on 2009-05-19 23:25:49
Shortening my comment.

Global hotkey mediakeys don't work in the way "it should". When set to gobal the keys then only work for Foo and nothing else.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: novembre on 2009-05-19 23:56:57
That's the point of GLOBAL hotkeys, they work even if foobar is not in focus. If you don't need this function, just disable Global Hotkey.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Paft on 2009-05-21 05:41:45
That's the point of GLOBAL hotkeys, they work even if foobar is not in focus. If you don't need this function, just disable Global Hotkey.

But then they only work when foo is in focus.

Winamp you can still control it when it isn't in focus, so long as no other app that uses mediakeys is in focus.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: cipher_nemo on 2009-06-10 19:22:54
I have the same problem as the OP, even years later. I will try adding the line in SetPoint tonight and see if that helps. I'm also playing LOTRO on Windows 7 RC-1 with Foobar2000 and unfortunately, Foobar2000 is the issue here when combined with Setpoint.

I'll report if it helps me.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: cipher_nemo on 2009-06-11 05:54:14
Nope, no go. I installed Visual Studio 2010 Professional any ways since I'm a software engineer who uses VS 2008 and since the 2010 was a free Beta.

I then used Microsoft Spy++ 64-bit to get the class ID of Foobar2000 version 0.9.6.8, which is: {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1}

I add that foobar line to my Setpoint utility's ini file with this new class ID and still no go. In fact, I completely exited Setpoint and all Logitech G15 keyboard utilities, and this is still a no go.

On Windows 7 RC-1 with Foobar2000, I am unable to use any global keys for it when I run Lord of the Rings Online (LOTRO). I am running both as Administrator too under their executable properties.

Still broken after 3 years.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: cipher_nemo on 2009-06-12 14:53:27
Just to update my issue, foobar's global hotkeys works in other apps, just not LOTRO. But Winamp's global hotkeys work in LOTRO. I guess I'll have to see if Turbine can fix this in LOTRO for Windows 7.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: vogliadicane on 2009-06-27 13:13:02
I´m using a HP multi media keyboard (RK713A) together with the touchsmart PC. All media keys work (by default) except the forward and rewind keys. They can´t be set in the keyboard shortcut dialog. All other keys could be set the way described here (but are ok anyway).

Does anybody know what to do to fix this or some workaround to get an entry in the dialog?

running:

-Vista 64bit SP1
-foobar 0.9.6.7
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Relja on 2009-07-24 22:29:31
Hello.. i tryed what u wrote in your 1st post, but it didnt work
I use Windows 7 RC, my Foobar version is 0.9.6.8.
I am using razer lycosa keyboard. I tryed to uninstall its drivers, but still nothing..
When i associate foobar with cda files, and i turn it off.. i press my media key but than media players opens instead of foobar.
I read a bit on razer homepage FAQ and there is : Q;A - Can i use my media keys in some other programs than Media player, ITUNES, Winamp and Real player, and the Answer is no
When I uninstalled my drivers, media keys dont work at all, and In driver program.. i have to chose one of those 4 programs for media keyes..
Is there any solution for this?

I am sorry for my bad english.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Lebon14 on 2009-09-28 09:59:30
Sorry to hijack this thread but I need help.
    * What didn't work

Everything... I use SetPoint 4.8 with a Logitech Media Keyboard Elite.

    * Whether the media keys work in foobar when it's focused

Nothing.  SetPoint didn't recognise Foobar 0.9.6.9 so... no keys are working.

    * Your version of Windows

Windows Vista Home Premium SP2.  I would also add Windows 7 RC on Dual-boot.

    * Your version of Foobar

Like I said above... 0.9.6.9

    * What keyboard you're using

*sigh* Logitech Media Keyboard Elite.

    * What drivers / software you have installed for your keyboard

Logitech's... aka SetPoint

    * Anything else you think might be relevant

Yeah.  I've also set foobar as my CDA player but pushing the Media Button on my keyboard opes iTunes instead of foobar2000.  (Btw, iTunes is there only to buy music... nothing else).
Foobar doesn't recognize the Play/pause button... neither the Play one... etc.

Thanks for your help.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: cryticfarm on 2009-09-28 13:10:14
My sidewinder keyboard will not work. It does work however if I stop the intellitype software, but that means my macros do not work.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: karlol on 2009-10-29 22:03:20
WORKS!

setup:
- logitech media keyboard 600
- windows7 x64
- foobar2000 v0.9.6.9 w/ columns ui
- set point 4.80
- class-id: {E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}


thanks thanks
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: karlol on 2009-10-29 22:13:56
Sorry to hijack this thread but I need help.
    * What didn't work

Everything... I use SetPoint 4.8 with a Logitech Media Keyboard Elite.

    * Whether the media keys work in foobar when it's focused

Nothing.  SetPoint didn't recognise Foobar 0.9.6.9 so... no keys are working.

    * Your version of Windows

Windows Vista Home Premium SP2.  I would also add Windows 7 RC on Dual-boot.

    * Your version of Foobar

Like I said above... 0.9.6.9

    * What keyboard you're using

*sigh* Logitech Media Keyboard Elite.

    * What drivers / software you have installed for your keyboard

Logitech's... aka SetPoint

    * Anything else you think might be relevant

Yeah.  I've also set foobar as my CDA player but pushing the Media Button on my keyboard opes iTunes instead of foobar2000.  (Btw, iTunes is there only to buy music... nothing else).
Foobar doesn't recognize the Play/pause button... neither the Play one... etc.

Thanks for your help.


similiar setup to mine, so here is what i did:

1. configurate your keyboard shortcuts in foobar2000, don't forget to check "global shortcut"
2. move to your setpoint directory (for example: C:\Program Files\Logitech\SetPoint)
3. open the file "players.ini"
4. add one of the following lines to the [players] section:

- if you use the default interface in foobar, add this line:
Code: [Select]
foobar2000=wac,foobar2000.exe,{97E27FAA-C0B3-4b8e-A693-ED7881E99FC1},xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,foobar2000


- if you use Columns UI, add this line:
Code: [Select]
foobar2000=wac,foobar2000.exe,{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8},xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,foobar2000


5. save the file ;D
6. restart setpoint (exit, start)
7. should work now
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Lebon14 on 2009-10-30 19:44:57
I kind of solved my own problem.
The thing is that Windows' default driver for multimedia keyboard is 1000 times better than Logitech's.  Hell, if I press "Media" on my keyboard, it doesn't open iTunes anymore.  It opens Foobar!  Like I want.  With Logitech's driver, I couldn't make foobar recognize that I was pressing Next, previous, play/pause, stop, volume up, volume down & mute.  Without it, it recognize it right away!!

So, without further ado, I say : Logitech drivers are TRASH!!!
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: asc28 on 2010-02-01 03:32:17
I used this a while ago with success but since then have updated to foobar2000 1.0 and deleted the plugin. I don't require the functionality anymore, but I can't disable it. Play still plays foobar2000 globally. And it doesn't show up as mapped in foobar2000. Is there a config file I can manually change or delete that might contain these legacy settings?
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Yirkha on 2010-02-13 03:50:18
I guess what you see is the new v1.0 feature, using the common "multimedia keys" framework, see the change log (http://www.foobar2000.org/changelog).
Quote
Improved compatibility with multimedia keyboards.
This behaviour can't be disabled.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: nekonyaa on 2010-08-07 14:49:25
Got trouble with intellytype 7.1 + windows7 + foobar 1.1 b2

Problem is, itype don't recognize foobar started. instead of sending shortcut keys, it starts foobar again. if i change association to any other player it starts that player and than mm keys works fine.

UPD solved. problem was in simlinked folder used to install foobar. somehow windows uses real path to folder like d:\programs\foobar2000\ instead of simlinked c:\programs... but associatons in windows registry points at c:\programs\..
tl;dr - reinstall to normal folder, disable associations, enable again -> solved
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: whd on 2010-08-23 08:51:39
Code: [Select]
foobar2000=wac,foobar2000.exe,{97E27FAA-C0B3-4b8e-A693-ED7881E99FC1},xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,foobar2000

Works with:
foobar2000 v1.1 (stable)
Windows 7 x86
SetPoint 6.15.6
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: enigmatik on 2010-08-28 15:50:07
Everything works here except for the shuffle key on my logitech keyboard. I want to associate it with Playback/Random function. I'm using foobar 1.0.3 and Windows 7.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Baldurien on 2010-08-28 16:10:29
Hello all,

I ran in pretty much the same trouble, and I tried several "simple" things. First, here is my setup :

Hardware:

Software:


With that said, I started testing different things :



One another thing, lies with my i-rocks keyboard :

(http://a.imageshack.us/img827/1589/foobarmultimediakb.png)



Removing the USB Receiver make it work again for a short amount of times, but then it failed again. In fact, killing SetPoint does the same thing. Perhaps the keyboard event manager is in a "pending mode", where it does not filter keyboard event, who knows ?

Is seems (according to wikipedia (http://en.wikipedia.org/wiki/IntelliType)) that Version 7.0 and later in Windows 7 has recently been proven to disable the media keys (Play/Pause, Next, Previous, Stop) for third-party media players such as iTunes and Media Jukebox when they are not the primary window of focus. This behavior has not been addressed by Microsoft as of Version 7.10.344.

That is exactly my version.

I also tried the todo here : http://wiki.hydrogenaudio.org/index.php?ti...Multimedia_keys (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000%3a%50references:General:Keyboard_Shortcuts#Multimedia_keys)

But since (after killing iType) foobar2000 tells me that it is natively supported, and it might have unwanted effect, I did not try much.

I don't know if there are workaround, except from a proper bug report to microsoft...

Sorry for the pretty long post ! However, I do hope that someone would answer if a solution for IntelliType worked.



Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Baldurien on 2010-09-01 19:11:51
I seems that the new driver (intellitype8) patch this ! However, play does not open anymore foobar.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: moogleboi on 2010-09-09 17:15:49
Tried everything and I'm the point where I think I might send this keyboard+mouse back for a refund if Logitech doesn't give me a helpful response (and I doubt they will).

First I must say the media keys work how I want them to WITH SETPOINT CLOSED. But of course with SetPoint closed none of the custom hotkeys work. I've tried editing Players.ini with the application code from WinID, numerous things. I'm fed up *sadface*

I'm using the latest version of SetPoint (6.15) with a Desktop Wave keyboard. Is it not possible to just uninstall the SetPoint software and map the keys myself? At the end of the day there's just keys for zoom/aero and application launching.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: moogleboi on 2010-09-09 18:23:47
It's worth noting I have Columns UI installed in Foobar - it's the latest version of Foobar as well.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: hso on 2010-09-11 12:15:50
I guess what you see is the new v1.0 feature, using the common "multimedia keys" framework, see the change log (http://www.foobar2000.org/changelog).
Quote
Improved compatibility with multimedia keyboards.
This behaviour can't be disabled.


Sorry, do you mean that I cannot disable global multimedia keys in v1.0+? I had no problems with prior versions, but 1.1 always seems to steal global multimedia keys, even though I don't want it! I often have several players opened simultaneously, and of course I want only one of them to react on these keys (normally it should be the one that has focus, or the main one if none have focus - this is how it worked before).

Is it that difficult to provide a checkbox somewhere in the configuration to disable global MM keys?

I tried to "unmap" them by assigning empty actions to these keys, but it disabled them globally as well...

If there's no solution, I have no option but to roll back to good old 0.9...
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: royaljerry on 2010-09-25 14:02:00
Guys, I've been swearing for two days since I have upgraded to fb2k 1.1 and my top button on my Logitech MX Revolution stopped working, Yes, I have set it to Play/Pause instead of the default Google Search, cause I always have Chrome open, so searching Google is 24/7 at hand, but I need to control the player more often (e.g. the kids come suddenly into my room while listening to NiN at full volume  Yes, fb2k stopped reacting to the button in hidden/inactive modes. Yes, I have tried all the tricks mentioned on all pages of the blessed World Wide Web (folks, you just cannot tell me any new search phrases regarding fb2k and SetPoint).

I started to think, if it happens only in the case of MM special keys / mouse buttons, but not in the case of regular keystrokes, why not emulating a regular keystroke with the mouse button?

So here is my solution -- simple as a brick, but more interestingly requires no registry or ini file hacking.

Step 1:



Two more remarks:

Yes, it seems so, this problem exists only in the case of Play/Pause. All other playback features (Stop, Next/Previous tracks, etc.) just work fine with the mouse buttons in the regular way.

Thanks, Logitech, yes, your hardwares are fantastic, but your softwares are a piece of crap.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Llamatron on 2011-07-31 10:48:18
For thoses who can't get it working with the infos provided in the OP, when trying to follow these instructions I noticed the fancy winid info was nowhere indicated in other lines in players.ini, so I just used the line without that info and it seems to work fine:

Code: [Select]
Foobar2000=wac,foobar2000.exe,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,foobar2000


Tested on Win 7 x64 SP1 with Setpoint Control Center 6.30.41 & Driver 5.30.67
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: garbanzo.bean on 2012-11-18 16:22:07
This doesn't seem to be working in Windows 8. With SetPoint loaded I can only use my multimedia keys when foobar is minimized. If the window is active, no custom buttons work, neither on my mouse nor on my keyboard. And the OSD never works...

The same players.ini in Windows 7 works perfectly.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: matthies on 2013-03-03 22:49:48
i thought i am gonna be an archeologist writing in this topic, but hopefully i am not
well, the problem is as follows:
- my play/pause doesnt work at all, even foobar cant recognize the key in shortcut preferences, but for ex. WMP works perfectly with this key
- Win 8 pro x64
- foo 1.2.3
- i am using my laptop Asus series N61VN
- even Windows driver nor the ATK drivers for HotKeys doesnt seems to work in this case
- shit didn't work even on Windows 7 in the past.

The thing that bother me the most, is why this crap works with shitty WMP, and can't work with something better.

ps. since i am using Win 8 i lost the multimedia keys, that i had in Win 7 when i just putted the cursor on foo on task bar, any ideas?
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: RNG on 2014-05-16 11:51:06
"So you've followed the instructions, tried the troubleshooting steps, and it still doesn't work. No worries. Post:"

"What didn't work"
Multimedia keys are ignored while focus is on Calc from LibreOffice

"Whether the media keys work in foobar when it's focused"
Yes and also while other programs are focused

"Your version of Windows"
Windows 7 Home Premium SP 1

"Your version of Foobar"
1.3.2

"What keyboard you're using"
Lenovo laptop keyboard (g550 model 20023)

"What drivers / software you have installed for your keyboard"
Standard keyboard driver PS/2, version 6.1.7601.17514

"Anything else you think might be relevant"
Multimedia keys work perfectly for Winamp, also while Calc is focused.
With both Foobar2000 and Winamp running only Winamp reacts to multimedia keys (I mentioned it on wiki - http://wiki.hydrogenaudio.org/index.php?ti...Multimedia_keys (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000%3a%50references:General:Keyboard_Shortcuts#Multimedia_keys) )
This problem is considered to be a LibreOffice bug ( https://bugs.freedesktop.org/show_bug.cgi?id=32664 (https://bugs.freedesktop.org/show_bug.cgi?id=32664) ) though Winamp found workaround.
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Hrakhor on 2014-10-26 21:07:53
Hello.
I have a question. I have some SpeedLink keyboard with multimedia keys. Is it possible to assign some action to key that occurs after holding a key for some period of time? For example on my keyboard default action for ">>" button in foobar is skip song which is great but i also want to forward song with just by holding it for some time (0,5 sec or 1 sec).
Title: Multimedia keyboards + foobar2000: A complete guide
Post by: Hrakhor on 2014-10-30 02:39:44
Hello.
I have a question. I have some SpeedLink keyboard with multimedia keys. Is it possible to assign some action to key that occurs after holding a key for some period of time? For example on my keyboard default action for ">>" button in foobar is skip song which is great but i also want to forward song with just by holding it for some time (0,5 sec or 1 sec).

Also i have another problem. Some time ago i had to repair windows (because i got new motherboard) and i found now that play/pause multimedia key no longer launches foobar.  After i launch it manually pausing and resuming with or without focus works great as before.