iXab3r/MicSwitch

Feature Request: Allow media control keys as hotkey

Opened this issue · 2 comments

I'm currently using the Bose QC35 II headset which has no hardware mute on the microphone. Like many other headsets, they do offer media controls. It'd be great if one could use media controls for the hotkey in MicSwitch.

For example, on the QC35s there is a single "action" button which send one of three media keys:
single-press: media play-pause
double-press: media track next
triple-press: media track previous

Currently I'm using AutoHotKey to bridge the gap, it picks up the media keys and then submits a hotkey that MicSwitch can understand (in this case, Alt+Shift+m):

Media_Play_Pause:: Send, +!m

It'd be great if MicSwitch could pick the keystroke up itself!

Hey, I'll look into it - should not be a very big deal as keyboard hook system that I am using uses scan codes anyways, so detecting a media keys should be quite easy

Not sure if this helps at all but using Keyboard Key Info I find the following results for the three interactions (single/double/triple click):

KEYDOWN:	 ScanCode=0x0, Extended=No, VirtualKeyCode=0xB1 (Media Previous Track)
KEYDOWN:	 ScanCode=0x0, Extended=No, VirtualKeyCode=0xB0 (Media Next Track)
KEYDOWN:	 ScanCode=0x0, Extended=No, VirtualKeyCode=0xB3 (Media Play/Pause)