Lightning Hunter@Posted: Tue Nov 11, 2008 7:05 pm :
Hi all, I just registered on this forum. I was wondering if anyone knew a way to use global hotkeys in doom3, such as Winamp. Actually, the primary reason I want to know is to change the volume of the game. I use a program called 'Sound Volume Hotkeys' that enables me to press a few buttons anywhere and the windows master volume will change. This helps a lot when I'm wearing headphones, because I'm constantly adjusting the volume (especially while in games). This program works in 90% of all the games I've tried, but I've found that it does not work in Doom 3. I've also tried other volume programs in windows, but with no luck. I noticed that the global hotkeys in Winamp do not work either. I guess Doom 3 overrides them all. It's annoying having to press escape and change the volume through the Doom 3 menu every time. Is there another way?



Neurological@Posted: Tue Nov 11, 2008 8:14 pm :
I think is possible to bind a key to the cvar of the menu volume, so you just press F1 for example to lower the volume and F2 to raise it. Atm I can't look into the code but can be done.



Lightning Hunter@Posted: Tue Nov 11, 2008 11:05 pm :
Well, if someone could point out what the cvars are, I would greatly appreciate it. :)



rich_is_bored@Posted: Wed Nov 12, 2008 8:28 am :
http://www.modwiki.net/wiki/CVars_(Doom_3)



Lightning Hunter@Posted: Wed Nov 12, 2008 9:27 am :
rich_is_bored wrote:
http://www.modwiki.net/wiki/CVars_(Doom_3)


Unfortunately, there are no Cvars listed there that increase/decrease the master volume of doom3. I hope someone knows how to do this...



Ivan_the_B@Posted: Wed Nov 12, 2008 10:31 am :
Are you sure?
I see s_volume_dB.

bind m s_volume_dB 0 --> m = set max volume
bind n s_volume_dB -40 --> n = set min volume



simulation@Posted: Wed Nov 12, 2008 10:46 am :
I'm away from my D3 install to test but I think you could also do something like this...

bind n toggle s_volume_db "0" "-10" "-20" "-30" "-40"
bind m toggle s_volume_db "-40" "-30" "-20" "-10" "0"

So n and m would then step through the values each time they're pressed; n for louder, m for quieter.



The Happy Friar@Posted: Wed Nov 12, 2008 1:21 pm :
the volume hot keys on my keyboard work fine in doom 3. strange yours don't.



Lightning Hunter@Posted: Wed Nov 12, 2008 8:10 pm :
The Happy Friar wrote:
the volume hot keys on my keyboard work fine in doom 3. strange yours don't.


What version of Windows are you using? What hotkey program? Also, what video mode do you run Doom 3 in? It might be one of those factors. I use Windows XP with the "Sound Volume Hotkeys" program. Winamp doesn't work either, though...



The Happy Friar@Posted: Thu Nov 13, 2008 3:54 am :
i use XP Pro SP3. I don't have anything installed, Windows detected & uses the hotkeys on my logitech kb on it's own.



Lightning Hunter@Posted: Thu Nov 13, 2008 3:59 am :
The Happy Friar wrote:
i use XP Pro SP3. I don't have anything installed, Windows detected & uses the hotkeys on my logitech kb on it's own.


I still use SP2, but I doubt that is the reason. Hotkeys work in every other game for me. They only don't work in Doom 3. You didn't tell me what volume hotkey program you use. Or does your keyboard have volume buttons on it? My kb does not have those. I have to assign keys to the volume control using a 3rd party program.



The Happy Friar@Posted: Thu Nov 13, 2008 6:01 am :
my kb has the hotkeys right on it.



Lightning Hunter@Posted: Thu Nov 13, 2008 6:51 am :
The Happy Friar wrote:
my kb has the hotkeys right on it.


Right. That's what I thought... My kb doesn't have them. I'll bet no other global hotkeys work for you (Winamp especially). I think it's because Doom overrides all the hotkeys. However, since you can't bind volume keys on your kb to anything in Doom, they still work.



6th Venom@Posted: Thu Nov 13, 2008 6:57 am :
The Happy Friar wrote:
i use XP Pro SP3. I don't have anything installed, Windows detected & uses the hotkeys on my logitech kb on it's own.

Me too. built-in keyboard's volume keys work well over Doom3, maybe an higher latence/response time, but nothing more than 1sec max.
(old school MS digital media pro keyboard)



The Happy Friar@Posted: Thu Nov 13, 2008 3:13 pm :
Lightning Hunter wrote:
Right. That's what I thought... My kb doesn't have them. I'll bet no other global hotkeys work for you (Winamp especially). I think it's because Doom overrides all the hotkeys. However, since you can't bind volume keys on your kb to anything in Doom, they still work.


other shortcut keys work fine.
My kb is nothing special. Cost me $10.