Jump to content


Photo

Getting multimedia keys to work with bbKeys

bbKeys

  • Please log in to reply
No replies to this topic

#1 junkie

junkie

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 18 August 2015 - 03:55 PM

In my case, the multimedia keys (volume up/down, mute) didn't work out of the box (haha, box, get it?), so this is my solution:

 

1. Download nircmd from http://www.nirsoft.n...ils/nircmd.html (pick the version matching your arch: 32 or 64bit)

2. Extract to a desired location, e.g. "C:Program FilesNircmd"

3. Make sure bbkeys plugin is enabled

4. Edit bbkeys.rc, add the following:

KeyToGrab(VK173), WithModifier(), WithAction(Exec "C:Program FilesNircmdnircmd.exe" mutesysvolume 2)KeyToGrab(VK174), WithModifier(), WithAction(Exec "C:Program FilesNircmdnircmd.exe" changesysvolume -655)KeyToGrab(VK175), WithModifier(), WithAction(Exec "C:Program FilesNircmdnircmd.exe" changesysvolume 655)

First line is toggle mute/unmute.

Second line is volume down, third line is volume up. The value range is 0-65535 as per the documentation of nircmd. You can finetune the last parameter, which is the step. "655" means there is roughly 100 steps from 0 to 100% volume.

 

Happy boxing!

 

 

References:

 

Virtual key codes (needs hex to dec conversion, e.g. 0xAD is VK173)

https://msdn.microso...1(v=vs.85).aspx

 

Nircmd manual

http://www.nirsoft.n...d.html#examples


  • mojmir and CovChEGG like this





Also tagged with one or more of these keywords: bbKeys

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users