Bluetooth media controls not working windows 10

I have bluetooth headphones synced and playing music from my windows 10 laptop without any problems.

How can I make it possible to pause/play, skip track, previous track controls on the headphones working with windows 10?

I am pretty sure this could/should work as my keyboard is bluetooth and all the controls on that work without problems.

I wonder, if there any way to catch bluetooth singles send with autohotkey?


Solution 1:

Click on the Windows Start Button and navigate to the Control Panel. Start up Administrative Tools and click on Services. Scroll down to Human Interface Device Access and ensure the service has started up. If it is not, click on restart the service to the left pane of the window and change it to startup automatically by double clicking the service.

Solution 2:

I've found this Reddit post with a solution that appears to work with the play/pause.

In addition to that I use the StreamKeys Chrome extension like escalator suggest above. This works more or less fine for me. You may want to tweak it more to suit your needs.

Working .ahk script from the aforementioned Reddit Post:

#Include AHKHID.ahk
Gui, +LastFound
hGui := WinExist()
OnMessage(0xFF, "InputMsg")
AHKHID_Register(12, 1,hGui, RIDEV_INPUTSINK)
return

InputMsg(wParam, lParam) {
    Local d
    devhandle:=AHKHID_GetInputInfo(lParam,II_DEVHANDLE)
    data_code:=AHKHID_GetInputData(lParam, uData)
    if (data_code=5) {
       SendInput {Media_Play_Pause}
    }
    return test
}