Jump to content


Photo

KeyboardVolume Control in Windows 7?


  • Please log in to reply
9 replies to this topic

#1 tordenflesk

tordenflesk

    Advanced Member

  • Members
  • PipPipPip
  • 55 posts

Posted 30 May 2014 - 06:05 PM

I use "eclipse driver exe" to control the volume in XPx64, but in W7x64 it's dead. It worked in explorer the little while before I gote BBZero set as shell. EDIT: Ok, let's pretend I have no idea what I'm doing. How do I do this:

The same method with nircmd also applies to bbkeys. The code for bbkeys would look something like this: KeyToGrab(Num9),  WithModifier(Win), WithAction(ExecCommand), DoThis(C:Blackboxusrbinnircmdnircmd.exe changesysvolume -2000) KeyToGrab(Num0),  WithModifier(Win), WithAction(ExecCommand), DoThis(C:Blackboxusrbinnircmdnircmd.exe changesysvolume 2000) Just edit the key you want to use for volume controls, save the .rc and restart blackbox. If you wanted to use the buttons or sliders on a media keyboard, use bbkeyhook to define them.



#2 tordenflesk

tordenflesk

    Advanced Member

  • Members
  • PipPipPip
  • 55 posts

Posted 09 July 2014 - 08:15 PM

*bump*?



#3 xDemonessx

xDemonessx

    Member

  • Members
  • PipPipPip
  • 56 posts
  • LocationChicago

Posted 13 July 2014 - 07:28 PM

The method mentioned on nanami-tan requires you install nircmd, which I assume you did. It basically sends command-line interface messages you would normally type in the CMD window to windows directly without any use of the cmd window.

 

What this guide is showing you how to do, is bind these messages to keys using the bblean plugin, bbkeys.

 

Right click menu > settings > edit > bbkeys.rc

 

It looks like this: https://raw.githubus...tings/bbkeys.rc

 

Just copy and paste what you quoted into those rc settings under one of the lines. Make sure there are no conflicting keys though. (i.e. you quoted the use of win + numpad 9 and win + numpad 0 for volume up / down respectively)

 

My settings do not include custom volume keys on the numpad. Note I mention if you want to use buttons or slider keys (custom on keyboards like the G110 I use) you must hook them with the bbkeyhook plugin (which I don't use and cannot vouch for). You must also then know the name of the key (which I can't help you find because I don't know what keyboard you may be using).

 

If you STILL have no clue what the hell I just said, there is an option (which i prefer) outside of bbkeys that uses Auto Hot Key. (http://www.autohotke...cs/Tutorial.htm please do the tutorial!).

 

After installing and doing the tutorial, you can use AHK to do the same thing bblean does - bind a key to set volume up + down.

 

This is the AHK Script I use : https://raw.githubus...tup/volume.ahk -  this works for my volume slider, and my mute key. I haven't NOT used it in over a year, so I can't even tell you if other bblean versions have fixed or broken it at all. However it does work for me, with Mojmirs Blackbox Zero.



#4 tordenflesk

tordenflesk

    Advanced Member

  • Members
  • PipPipPip
  • 55 posts

Posted 13 July 2014 - 11:29 PM

Yeah, there's no x64 bbKeyHook so an AHK script looks to be the way to go. Thank you.

 

EDIT:

Updated your script to avoid running a program on every tick of my volume wheel:

http://pastebin.com/raw.php?i=FmggaZEu



#5 diabol

diabol

    Lazyass

  • Validating
  • 236 posts

Posted 17 July 2014 - 02:49 PM

Indeed AHK is the best way to go about this.

It more or less deprecates bbKeys



#6 Gorgonian

Gorgonian

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 23 July 2014 - 07:03 PM

I can't completely replace bbkeys with autohotkey because there is no "next window" function in autohotkey like there is in blackbox.  I hacked something together to make it work, but it's not perfect (I use my 4th mouse button to go to the next window).

 

(Note that simulating alt+tab with one mouse button only goes back and forth between two windows, doesn't cycle through all of them one at a time).



#7 diabol

diabol

    Lazyass

  • Validating
  • 236 posts

Posted 24 July 2014 - 01:34 AM

Well, here's the thing.

I thought this was well-understood, but I guess nobody can be arsed to read the old and dusty documentation. And frankly we don't even include it in current releases.

Good to have this forum.

 

To execute any bro@m from anywhere:

blackbox.exe -exec @broam

 

NextWindow/PrevWindow are a little special because they are in BBCore (along with the other 'Actions' that bbKeys offers):

blackbox.exe -exec @BBCore.NextWindow

blackbox.exe -exec @BBCore.PrevWindow

 

Of course you will need to either have blackbox.exe in your path or you specify the full path in whatever script you use (seriously, ahk is awesome for this kind of thing, see attachment).

 

Attached File  bbKeys-MouseDemo.zip   310bytes   8 downloads - You're welcome



#8 Gorgonian

Gorgonian

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 24 July 2014 - 01:55 AM

Heh, I just meant that autohotkey doesn't directly have the nextwindow function, not that it was impossible to within blackbox. :)

But point taken.



#9 tordenflesk

tordenflesk

    Advanced Member

  • Members
  • PipPipPip
  • 55 posts

Posted 16 August 2014 - 11:12 PM

Yeah, there's no x64 bbKeyHook so an AHK script looks to be the way to go. Thank you.   EDIT: Updated your script to avoid running a program on every tick of my volume wheel: http://pastebin.com/raw.php?i=FmggaZEu

So, I eventually booted into W7 and it appears SetSound doesn't work at all on W7. So here's the updated script: http://pastebin.com/raw.php?i=t2PBuctD   Requires AutoHotkey_L andVista Audio Control Functions Getting ever so slightly closer to Windows 7 being tolerable as a OS :P
  • pitkon likes this

#10 junkie

junkie

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 18 August 2015 - 04:02 PM

For future reference:

 

Getting multimedia keys to work with bbKeys:

http://blackbox4wind...rk-with-bbkeys/

 

Tested with Windows 7 x64 SP1






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users