View Full Version : Mapping Hydrophone volume to keyboard ?
Fubar2Niner
06-24-12, 05:00 AM
Hi shipmates.
Like the question says, I want to map my h/phone volume control to my k/b but have no idea how to do it. I've looked in commands_en.cfg, which I guess is the right route to go, and have found.......
[cmd146]
Name=Change_hydrophone_volume
Ctxt=1
My guess is this is the correct route, but I have no idea about key codes etc. If anyone could help an old lag, I'd be most grateful :arrgh!:
Best regards.
Fubar2Niner
My guess is this is the correct route, but I have no idea about key codes etc. If anyone could help an old lag, I'd be most grateful :arrgh!:
Just look here:
http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
You need to change these decimal values to hex.
So, to assign the shift-h key, you need to write:
Key0=0x48,s,"Shift+H"
Because:
the 'H' key is 72 dec = 48 hex
's' - action with the 'shift' key ('c' for the 'control' key).
Good luck.
Fubar2Niner
06-24-12, 06:04 AM
Just look here:
http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
You need to change these decimal values to hex.
So, to assign the shift-h key, you need to write:
Key0=0x48,s,"Shift+H"
Because:
the 'H' key is 72 dec = 48 hex
's' - action with the 'shift' key ('c' for the 'control' key).
Good luck.
Thanks for the info runio, will this make the example key a simple toggle ie. increase/decrease volume?
Best regards.
Fubar2Niner
Thanks for the info runio, will this make the example key a simple toggle ie. increase/decrease volume?
I don't know, you have to check it yourself.
Greetings
Fubar2Niner
06-28-12, 01:00 PM
@runio
Hi shipmate, work has been a royal pita, so I didn't get chance to try out the keymap. Finished work early today so took the plunge...... It works !!!!! :yeah: Thanks for your help mate, the phones volume is so much easier to use now. Thanks a bunch kaleun :salute:
Best regards.
Fubar2Niner
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.