Thursday, December 17, 2015

Make Logitech keyboard media keys work with AIMP and Google Play Music

If your Logitech keyboard media keys are not working, it is probably because Logitech's Setpoint software does not support your media player.

I have an MK300 MK520R keyboard and when I press the volume up/down, mute and pause keys, all is well.

However, when I press the prev/next keys, nothing happens.

Here is a solution that works with my keyboard and Setpoint

- Find the file players.ini 
(in my case, it is in:  C:\Program Files\Logitech\SetPointP)

- Open it with an editor and add the 2 lines I've highlighted
(please note that due to line-wrap, things look a little messy.
I have used <CRLF> in places where the line needs to break.
Any line breaks anywhere else are actually just word-wraps)


#List of supported players<CRLF>
#{btn|key|msg|emg|cmd|wac},exeName, wndClass,wndCaption,xxx,play_delayplay,pause,stop,prev,next,remove_flags,ShowOSD,menu_item<CRLF>
#special char --> ^ ctrl;+ shift+ctrl; $ ctrl (no translation); * alt (no translation); @ ctrl+alt (no tanslation); & (no translation) <CRLF>
<CRLF>
[Players]<CRLF>
AIMP3=cmd,AIMP3.exe,Winamp v1.x,xxx,xxx,40045,40046,40047,40044,40048,0,1,WinAmp 5<CRLF>
AIMP2=cmd,AIMP2.exe,Winamp v1.x,xxx,xxx,40045,40046,40047,40044,40048,0,1,WinAmp 5<CRLF>
MusicMatch7=wac,MMJB.EXE,MMJB:MAINWND,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,MusicMatch<CRLF>



[EDIT 3 may 2017]
Modified to suit Google Play Music
In the players.ini file, add the following to the corresponding sections

[Players] GooglePlayMusic=key,chrome.exe,Chrome_WidgetWin_1,xxx,xxx,&0xB3,&0xB3,&0xB2,&0xB1,&0xB0,0,1,Google Play Music 

[Players.Run] GooglePlayMusic=path,%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Web Applications\_crx_icppfcnhkcmnfdhfhphakoifcfokfdhg\Google Play Music.ico 

Players.Display] 
GooglePlayMusic=Google Play Music
You then need to kill the SetPoint process and re-start it, for the changes to take effect.


[EDIT 5 feb 2019]

[Players]

AIMP3=cmd,AIMP3.exe,Winamp v1.x,xxx,xxx,40045,40046,40047,40044,40048,0,1,WinAmp 5 AIMP2=cmd,AIMP2.exe,Winamp v1.x,xxx,xxx,40045,40046,40047,40044,40048,0,1,WinAmp 5 
AIMP4=cmd,AIMP.exe,Winamp v1.x,xxx,xxx,40045,40046,40047,40044,40048,0,1,WinAmp 5 


[Players.Display]
AIMP=AIMP
AIMP2=AIMP2
AIMP3=AIMP3


[Players.Seek]
AIMP=cmd,40060,xxx,1,1
AIMP2=cmd,40060,xxx,1,1
AIMP3=cmd,40060,xxx,1,1

[Players.Rewind]
AIMP=cmd,40061,xxx,1,1
AIMP2=cmd,40061,xxx,1,1
AIMP3=cmd,40061,xxx,1,1


Remember to restart Setpoint after you made your changes to the INI file.