Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Feature Request: Allow media control keys as hotkey #76

Open
aderusha opened this issue Dec 19, 2021 · 2 comments
Open

Feature Request: Allow media control keys as hotkey #76

aderusha opened this issue Dec 19, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@aderusha
Copy link

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!

@iXab3r
Copy link
Owner

iXab3r commented Dec 19, 2021

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

@iXab3r iXab3r added the enhancement New feature or request label Dec 19, 2021
@aderusha
Copy link
Author

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants