If you have one of these Logitech Keyboards with multimedia keys (e.g. the Internet Navigator) and use iTouch:
- quit iTouch (taskbar icon)
- find your iTouch folder (usually C:\Program Files\Logitech\iTouch)
- open players.ini and edit it ...
- copy the following line into this mess:
foobar2000=key,foobar2000.exe,FOOBAR2000_CLASS,xxx,xxx,C,X,Z,x,V,0,1,Foobar2000
- save players.ini
- start itouch.exe right away since it's in the same folder
- control foobar2000 with your multimedia keys
- don't be surpised if "previous" won't work. it won't work. yet.
Hm... Do you have any idea why Foobar2000 only reacts to every other press of play/pause? The other buttons seems to work fine though. (Still, it is better than with Winamp, where play/pause fairly often is interpreted as stop...

)
Maybe I should just try to map play/pause to another key and see what happens?
ASmith
Dec 20 2002, 03:58
beautiful !!! it works !!!
QUOTE(Lear @ Dec 20 2002 - 05:03 AM)
Hm... Do you have any idea why Foobar2000 only reacts to every other press of play/pause? The other buttons seems to work fine though. (Still, it is better than with Winamp, where play/pause fairly often is interpreted as stop...

)
Maybe I should just try to map play/pause to another key and see what happens?
This happens mostly because the play/pause implementation in Logitech's drivers is... weird. The first time you hit "play", it sends the "play" command. Afterwards, hitting play/pause sends the pause command. Until you hit stop. This state information is maintained independently of the program, so if you stop fb2k manually and hit your play key, Logitech sends the pause command again. Separate play and pause keys would really have helped here.

The single 'x' between the 'Z' and 'V' might be screwing it up too, cuasing it to try to assign 'x' to two keys at the same time. See if changing it to 'xxx' helps.
slothdog
Dec 20 2002, 10:06
Anyone know of a way to get the keys on a Microsoft multimedia/natural pro keyboard to work?
crowfax
Dec 20 2002, 12:31
Can anyone get Foobar to show up in the media player list when you press the "media" key?
To display Foobar2000 in the media player list you need to edit the registry.
Create foobar2000.reg with the following content (
you need to edit the paths! and use \\ instead of \)
CODE
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\foobar2000.exe]
"Path"="C:\\Program Files\\Foobar2000\\"
@"C:\\Program Files\\Foobar2000\\foobar2000.exe"
To let Foobar2000 show up when hitting the play button is also done via registry, just in case someone wants to know.
It' done in HKEY_CURRENT_USER\Software\Logitech\iTouch\CurrentVersion ("MediaPlayer").
I found out that this value is automatically updated corresponding to the player used with the media key. So no real need to edit.
Oh, and Ardax is right: The single "x" between the "Z" and "V" might screw something up, better take "xxx" there, since it's used for the other fields left out as well. So:
foobar2000=key,foobar2000.exe,FOOBAR2000_CLASS,xxx,xxx,C,X,Z,xxx,V,0,1,Foobar2000
sorry
QUOTE(Ardax @ Dec 20 2002 - 02:25 PM)
This happens mostly because the play/pause implementation in Logitech's drivers is... weird. The first time you hit "play", it sends the "play" command. Afterwards, hitting play/pause sends the pause command. Until you hit stop. This state information is maintained independently of the program, so if you stop fb2k manually and hit your play key, Logitech sends the pause command again. Separate play and pause keys would really have helped here. :)
Nope, that doesn't explain it (I had thoughts along those lines too). After pressing stop, the first play works fine, as well as the first pause, but after that, I need to press play/pause twice to get the desired effect. Any attempts to get Foobar and iTouch in sync (i.e., by using pause or play in Foobar without using the play/pause button) are futile, it seems. This is when using iTouch 2.13.194 btw.
[...]
Ah, after testing (in Foobar) the keys iTouch uses, I understand the problem. Quite simple really: Foobar has this interesting feature that the only command that can resume playing after pause is ... pause. Play is completely ignored. Hence the "odd" iTouch behaviour. B)
QUOTE(Lear @ Dec 21 2002 - 06:33 AM)
well as the first pause, but after that, I need to press play/pause twice to get the desired effect. Any attempts to
[snip]
interesting feature that the only command that can resume playing after pause is ... pause. Play is completely ignored.
LOL, I never noticed that before.
Still, seprate play and pause buttons on the keyboard would have fixed this.

aka,
thanks for figuring out that Media Key bit. I've had a couple people ask me about that already (look at page 2 of the sticky thread

), but my keyboard doesn't have one, so I never what it was all about.
1. The Pause works perfectly... Hold the Key down for a second.

2. You can hack the Media key in the registry to load Foobar2k instead of the media player menu.
CODE
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Logitech\iTouch\HardwareInfo\42\KeyboardLayout\100]
"Current"="Program"
"Assignables"="1,2,3,100"
"Default"="100"
"Function"="100"
"LastTimeUsed"=dword:3e0c02e9
"Menu"="3,"
"Active"=dword:00000000
"ConfigState"=dword:00000000
"Confirmed"=dword:00000001
"Program"="2,\"Foobar2000\",C:\\Program Files\\foobar2000\\foobar2000.exe"
"Setting"="Program"
Enjoy.
Maestro
Dec 27 2002, 10:35
Anyone had any succes getting the multimedia keys to work with global hotkeys, that doesent seam to work to well here ;(
Just got myself a cordless elite duo, and dug up this helpful topic ;p By the way, you can do previous now by mapping previous in fb2k to a single key, like B, then changing the xxx between Z and V to B. I still can't get fb2k to show in the media button, though who needs that anyway ;p
greenirft
Jan 30 2003, 01:21
It would incredible if someone figured out a way to get the keys on a Microsoft multimedia keyboard to work properly (or like the logitech keyboards). I really like Foobar2000, but sometimes I want to go back to WinAMP just to use those keys.
Annuka
Mar 15 2003, 19:57
It does not work on my computer if foobar is minimised to traybar.
Any solution?
exwhyze
Mar 16 2003, 00:40
If you have your hotkeys setup in FB2K exactly like they work in Winamp, add the following to FB2K to map everything correctly and allow previous to work.
QUOTE
foobar2000=key,foobar2000.exe,FOOBAR2000_CLASS,xxx,xxx,X,C,V,Z,B,0,1,Foobar2000
Trying to get FB2K to appear on the media button menu using the above crashed my itouch. If anybody else experiences this, get rid of the Path value and stick the full path to the FB2K exe in the default value.
igorsanches
Mar 16 2003, 05:40
QUOTE(Annuka @ Mar 15 2003 - 05:57 PM)
It does not work on my computer if foobar is minimised to traybar.
Any solution?
do this:
Foobar2000=wac,foobar2000.exe,FOOBAR2000_CLASS,xxx,xxx,14,14,13,12,11,0,1,Foobar 2000
Linkin
Mar 16 2003, 11:09
is there a possibilty that the "next" button on the logitech keyboard is used for "random" in foobar2000? because next isn't random anymore in these new foobar2000 version if shuffle is activated and shuffle is permanently on in my foobar.
NetRunner
Mar 26 2003, 14:34
QUOTE(igorsanches @ Mar 16 2003 - 01:40 PM)
Foobar2000=wac,foobar2000.exe,FOOBAR2000_CLASS,xxx,xxx,14,14,13,12,11,0,1,Foobar 2000
I'm using iTouch 2.13v194 (newer version doesn't close properly on my computer) and only play button works with minimized foobar. Back, fw & stop only work when restored.
And pressing play restores the player. Odd.
David Nordin
Mar 26 2003, 15:36
I have Logitech Comfort keyboard and mouse, no drivers and all media buttons work exclusively and globally for foobar, play/pause/stop/volume/next/prev/mute(altho no proper function yet).
Anyone having trouble with this?
I use generic WinXP HID drivers.
There are two words want to say:
THANK YOU!!!
Now I have no reason to use Winamp anymore.
leland
Apr 25 2003, 16:04
Can someone please post a well-commented version of this?
I'd like to be able to edit it if need be.
Also, would be nice to switch between winamp and foobar when I so desire.
I hope this helps:
QUOTE
#{btn|key|msg|emg|cmd& #124;wac},exeName,wndClass,wndCaption,xxx,play_delayplay,pause,stop,prev,next,remove_flags,ShowOSD,m
enu_item
# input type, executable file, window class, window caption, xxx, play, pause, stop, previous, next, remove flags, show onscreen display, menu item name
foobar2000=key,foobar2000.exe,FOOBAR2000_CLASS,xxx,xxx,C,X,Z,B,V,0,1,Foobar2000
To switch between Foobar and Winamp I'd probably use the media key.
leland
Apr 28 2003, 07:38
Great, thanks a lot aka. That's quite helpful.
NetRunner
Apr 28 2003, 10:33
I'm really really waiting for the Logitech's promised update to iTouch because for me those keys don't really work as they should. They restore and raise the foobar to the top. And all but play work only when foobar has focus. (Even with those wac commands.)
So hopefully the next iTouch version would fix this behaviour.
Hi!
I'm uing foobar 0.6 with logitech itouch keyboard (latest itouch software) with a hercules fortissimo 7.1 soundcard (latest drivers).
And I have this (Foobar2000=wac,foobar2000.exe,FOOBAR2000_CLASS,xxx,xxx,14,14,13,12,11,0,1,Foobar 2000) string in the players.ini file. And all the buttons work but if I lower/raise the volume on my itouch board nothing happens with the "sound volume" it's just the same and if I open up volume "the little speaker in the right tray" I see that it controls the master volume but I f lower/raise the wave volume "manual" instead, the volume changes. I hope you understand my jiiberish

and can help me.
upNorth
May 7 2003, 14:15
First of all, I'm no expert, but I have some ideas you might try.
Go to "Preferences->Core"
If you have checked "Use multimedia keys for attenuation" you also need to enable "Attenuator" in "Preferences->Playback->DSP Manager". If you have done the first but not the latter, you'll hear no difference when using the volume on the keyboard, when foobar2000 is in focus. This is because it's trying to adjusts the volume that you've turned off by not enabling "attenuator". If foobar is out of focus you adjust the master volume in windows.
Another problem is if you've enabled both and adjust volume both "in focus" and "out of focus" as this will adjust both foobar2000 and master volume.
This is at least how I've figured out it works.
My setup is working, and I've done what's been said in this thread and have these settings:
"Preferences->Core" unchecked ""Use multimedia keys for attenuation"
My keyboard volume control now controls master volume in windows regardless of foobar focus.
If this is far out please tell me
Btw: You may have another problem if you master volume bar is moving and nothing happens...
lukin013
Jun 20 2003, 17:55
I just bought a logitech elite duo off ebay but it doesn't quite work like it should. All the iTouch and multimedia keys don't do what they're supposed to. The only things that work correctly are the volume and iNav controls. I know most of the keys can be programmed through the iTouch software but the media keys like play and stop cannot. Does anyone know a way to change the function of these keys?
Hmm, has anyone been able to use multimedia keys with 0.7 beta? Pretty much stopped working for me.
upNorth
Jul 13 2003, 20:11
I didn't dare to ask (before I had prepared a good case), but yes, I have had problems with foobar v0.7betaX too.
I'm currently using beta20, and the keys only work when foobar is in focus.
I just tried to remove everything but foobar2000 in the players.ini, but to no avail.
After doing that I also discovered that winamp 2.95 support was still present somehow, even after removing it from players.ini. I did not find any clues in the registry to change this either (but I'm no reg expert).
Another thing I have noted is that when foobar is already running, I can no longer bring it to front by pressing my multimedia key shortcut "start foobar", or my taskbar icon shortcut.
WinXP SP1, foobar2000 v0.7beta20, Logitech Internet Navigator SE
Ameranu
Jul 15 2003, 16:18
I've the same problem -.- Foobar2000 v0.667 and Winampfft 2.x are working normally with this keyboard. Even if foobar is minimized. But 0.7...

... only when focused..
Somebody should try this line :
CODE
Foobar=msg,foobar2000.exe,FOOBAR20000_CLASS,xxx,xxx,40009,40044,40010,40051,40011,Foobar2000
in players.ini
Here is the Hoekey configuration for Foobar (using messages rather than keystrokes)
CODE
~Z=Msg|FOOBAR2000_CLASS|273|40051;windows+Z=Previous
~X=Msg|FOOBAR2000_CLASS|273|40009;windows+X=Play
~C=Msg|FOOBAR2000_CLASS|273|40044;windows+C=Pause
~V=Msg|FOOBAR2000_CLASS|273|40010;windows+V=Stop
~_V=Msg|FOOBAR2000_CLASS|273|40045;windows+SHIFT+V=Stop after current song
~B=Msg|FOOBAR2000_CLASS|273|40011;windows+B=Next song
~115=Msg|FOOBAR2000_CLASS|273|40008;windows+F4=Exit foobar2000
~^P=FocusMsg|FOOBAR2000_CLASS|273|40007;windows+CTRL+P=Preferences
~^F=FocusMsg|FOOBAR2000_CLASS|273|40040;windows+CTRL+F=playlist search
and here the iTouch configuration for Zoom Player (using messages rather than keystrokes)
CODE
ZoomPlayer=msg,zplayer.exe,TMainForm,Zoom Player,xxx,32817,32817,163889,491569,426033,Zoom Player
Xecter
Aug 25 2003, 08:58
Altus,
i pasted the first line into the players.ini
but im not sure how to enter in the second part....
can u explain please.
Thanks
whipper25
Aug 26 2003, 01:08
i believe you need the 'hoekey' software
Hmm, girder is rather nice. If anyone wants to use it as a replacement for itouch or any other manufacturer supplies multimedia keyboard software (which I can already suggest after 10 minutes of use), here's a short guide:
First you would create a Command, and a EventString under that. In the EventString, using Learn Event, press the multimedia key you need. Going back to Command, in the Command tab, you specify the Target as Class Name "FOOBAR2000_CLASS", Executable foobar2000.exe. You can use the targeting tool, but those two are the only ones you would need. Afterwards, put in the appropriate WParam and LParam. Here's how I got them:
I used Capture, and then clicked for example the play button in foobar2000. You would get a few new entries in the capture window. You're looking for the one with Window Class "FOOBAR2000_CLASS". Wparam should a non 0 or 1 number, and with some exceptions*, in the case of Foobar2k, the Lparam should be equal to "394682"
Once you put those two values in under Command tab, just click Apply and it should work.
I concocted a quick config file that you could load from the file menu, though it will probably only work with my or compatible keyboards (Logitech Elite Duo typeish). You will need to redefine the EventStrings for each Command if it doesn't work.
linky* The Play/pause command was the elusive one, I added it to fb2k's menu, and only then did it trigger an event. The Wparam is 22060, but, curiously, the Lparam is 0.
Parak >
Did you manage to learn Girder the events from your multimedia keys ?
Like the iTouch key...
Altus
Yep, though you should only have girder running (obviously). Once you give it the eventstring, in the command you would go to the OS tab, and pick execute from the list. Or whatever you need ;p
mimeryme
Aug 29 2003, 05:51
Without using iTouch, will the security mode work?
QUOTE(Parak @ Aug 29 2003, 01:32 PM)
Yep, though you should only have girder running (obviously). Once you give it the eventstring, in the command you would go to the OS tab, and pick execute from the list. Or whatever you need ;p
Well some keys are catched by Girder, but some keys are still unreachable for it.
thank you for your help
camote
Aug 29 2003, 18:25
Anyone know how to get the multimedia keys to work on an IBM keyboard?
If you have problems with windows hijacking certain keys, download the Keyboard Ex plugin (don't forget to enable it) for girder. IIRC there should be a thread in the girder forum that explains how to use it correctly.
StanleyPain
Aug 29 2003, 23:26
Anyone know how to get Foobar to recognize the key presses without it having to be the window in focus?
Cheers,
Mr. Pain
Chun-Yu
Aug 30 2003, 11:58
QUOTE(StanleyPain @ Aug 30 2003, 12:26 AM)
Anyone know how to get Foobar to recognize the key presses without it having to be the window in focus?
Use the "global hotkey" checkbox before adding a hotkey.
Guillaume
Sep 8 2003, 13:54
Girder works when Foobar isn't activated but just running in the background (that's a start), but doesn't pass the commands when Foobar is minimized to tray. What to do, what to do??
I'm using a Logitech Internet Navigator keyboard, this is how I've got it working with FooBar.
Plugin the keyboard, not using the Logitech drivers, as they hook any of the non-standard keys. Go into Foobar's shortcut keys dialogue and where it askes for the key to define, push one of the multimedia keys. Assign it to a function, set it as a global hotkey and move onto the next. It might display a single letter, like P or Q, but only the multimedia key will trigger than function in FooBar.
I've had success with most of the multimedia keys on my keyboard, previous, next, play/pause, stop, volume up/down, mute. The other keys you'll have to experiment with, some return a blank value in FooBar and can't be used to assign a global hotkey to.
- Jaxon
QUOTE(Guillaume @ Sep 8 2003, 08:54 PM)
Girder works when Foobar isn't activated but just running in the background (that's a start), but doesn't pass the commands when Foobar is minimized to tray. What to do, what to do??
You can use Foobars command line options. Run Foobar /help to see them.
colapesce
Sep 9 2003, 03:32
I found a strange bug on foobar format string.
I have a logitech keyboard internet navigator special edition and a sound blaster Audigy using kxdriver.
I do not use the logitech drivers for my multimedia keys , i use the kxdrivers for managing the multimedia keys.
So everything works fine BUT if i do not put '['%_foobar2000_version%']' at the end of the main window title formatting my multimedia keys stop working.
If i put '['%_foobar2000_version%']' at the end of the main window title formatting my multimedia keys go back working.
Is this a foobar bug ?
QUOTE(colapesce @ Sep 9 2003, 05:32 AM)
I found a strange bug on foobar format string.
I have a logitech keyboard internet navigator special edition and a sound blaster Audigy using kxdriver.
I do not use the logitech drivers for my multimedia keys , i use the kxdrivers for managing the multimedia keys.
So everything works fine BUT if i do not put '['%_foobar2000_version%']' at the end of the main window title formatting my multimedia keys stop working.
If i put '['%_foobar2000_version%']' at the end of the main window title formatting my multimedia keys go back working.
Is this a foobar bug ?
Sounds like you setup your kxdrivers to look for a window with "foobar" in the title to send events too.
colapesce
Sep 9 2003, 12:31
Sorry for my english, i'm italian.
I try to explain better
In foobar preferences->title formatting->main window title , if i do not write at the end of the window the words "'['%_foobar2000_version%']'" my multimedia keys stop working, if i write at the end the words "'['%_foobar2000_version%']'" the multimedia works perfectly.
the same happens if i put the words "'['%_foobar2000_version%']'" in the middle of the string, the multimedia does not work. I have only to put them at the end of the sentence for make the multimedia keys working.
I use the kxdrivers and do not install the logitech ones.
i do not install the logitech drivres coz they are in conflict with the kx multimedia keys controller.
Thank u.
NetRunner
Sep 9 2003, 15:01
Does foobar have some specific windows ID:s for play, stop, etc. So one could just use those in itouch.ini..
If there aren't any / or they are not documented; maybe they should be.
Then all this shortcut key business could be avoided.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.