Share via


Change keyboard volume increase/decrease increment amount.

Question

Wednesday, October 13, 2010 12:16 AM

Hello I am using a keyboard with volume keys on it and each press increases the system volume by 2% This is a bit fine for me and I would like to change it to 5%. I've researched extensively for a solution but I can not seem to find anything. I suspect its a setting in the registry as my laptops volume up/down keys also increases volume in 2% steps. I would really appreciate any help on this manner. Thank you.

All replies (1)

Wednesday, October 13, 2010 3:24 PM

The keypresses are sent to the OS as APPCOMMAND_VOLUME_UP and APPCOMMAND_VOLUME_DOWN HID messages.  These are then translated to calls to IAudioEndpointVolume::VolumeStepUp() or IAudioEndpointVolume::VolumeStepDown(); this is hardcoded to 51 steps.

Possible mitigations are to toy with the keyboard refresh rate in the Control Panel or to write an app that listens for the APPCOMMAND_VOLUME_UP HID messages and does its own thing.

Matthew van Eerde