03-03-2014, 02:36 AM
OK, these AHK scripts seem to be working now. The way they work is that you mute your mic input in your soundcards control panel and when you press any of the defined keys/mouse buttons, it unmutes the mic input whilst you're holding them and mutes it again when you release. The main purpose of this is so that when making gameplay videos, you don't record your own mic input except when you're pressing one of TS3 or TFAR PTT keys.
You can download AHK from here http://ahkscript.org/download/ and you'll also need the VA library so I've included that in the attached zip. Just unzip it so that you have the AutoHotkey folder in My Documents\
I've included three scripts. The first one, "Mute Unless Held (Keyboard).ahk", is suitable for the default TFAR keys (Capslock, Ctrl+Capslock and Alt+Capslock for SR, LR and Diver radios). The first section for Insert is my TS3 PTT key, so either change yours to that or edit the script and the second section for End is my TS3 Whisper key, so do likewise for that.
The second script, "Mute unless Held (Mouse - Capslock).ahk" also works with the default TFAR keys but uses mouse buttons, mapping the TFAR keys to MB5, Ctrl+MB5 and Alt+MB5. AHK can only map to two mouse buttons, which it calls XButton1 and XButton2 but they're probably called Buttons 4 and 5 in your mouse control panel. As above, edit the Insert and End sections of the script to match your TS3 PTT and Whisper keys, or change your TS3 keys to match the script.
The third script, "Mute unless Held (Mouse, Not Capslock).ahk" which is the one I use and prefer, is setup for using End instead of Capslock for TFAR . I've included my edited TFAR userconfig file in the zip, where I've just changed the three PTT keys to use End (207) instead of Capslock. I find this better as a) you don't end up typing in Caps when you use chat, b) it leaves Capslock free for VON if needed and c) I set my TS3 Whisper key to End, so when we're playing ArmA2 I disable the TFAR plugin and enable the Whisper plugin and can use my MB5 for Whisper and when we're playing ArmA3, I disable the Whisper plugin and enable the TFAR plugin and use MB5 for TFAR. As before, edit the Insert section or your TS3 PTT key accordingly.
Whichever script you use, you should be able to check if it's unmuting your mic input properly by opening your soundcard control panel and muting the mic input, then pressing the respective keys and you should see the mute symbol change whilst you're holding them. If you use other voice chat programs like Skype that use different keys, don't forget to unmute your mic input and exit AHK first, otherwise no-one will be able to hear you!
If you want to edit the scripts and need to check the correct keynames to use with AHK, there's a list here http://www.autohotkey.com/docs/KeyList.htm
Let me know if you have any problems with the scripts or any questions and I'll do my best to help.
You can download AHK from here http://ahkscript.org/download/ and you'll also need the VA library so I've included that in the attached zip. Just unzip it so that you have the AutoHotkey folder in My Documents\
I've included three scripts. The first one, "Mute Unless Held (Keyboard).ahk", is suitable for the default TFAR keys (Capslock, Ctrl+Capslock and Alt+Capslock for SR, LR and Diver radios). The first section for Insert is my TS3 PTT key, so either change yours to that or edit the script and the second section for End is my TS3 Whisper key, so do likewise for that.
The second script, "Mute unless Held (Mouse - Capslock).ahk" also works with the default TFAR keys but uses mouse buttons, mapping the TFAR keys to MB5, Ctrl+MB5 and Alt+MB5. AHK can only map to two mouse buttons, which it calls XButton1 and XButton2 but they're probably called Buttons 4 and 5 in your mouse control panel. As above, edit the Insert and End sections of the script to match your TS3 PTT and Whisper keys, or change your TS3 keys to match the script.
The third script, "Mute unless Held (Mouse, Not Capslock).ahk" which is the one I use and prefer, is setup for using End instead of Capslock for TFAR . I've included my edited TFAR userconfig file in the zip, where I've just changed the three PTT keys to use End (207) instead of Capslock. I find this better as a) you don't end up typing in Caps when you use chat, b) it leaves Capslock free for VON if needed and c) I set my TS3 Whisper key to End, so when we're playing ArmA2 I disable the TFAR plugin and enable the Whisper plugin and can use my MB5 for Whisper and when we're playing ArmA3, I disable the Whisper plugin and enable the TFAR plugin and use MB5 for TFAR. As before, edit the Insert section or your TS3 PTT key accordingly.
Whichever script you use, you should be able to check if it's unmuting your mic input properly by opening your soundcard control panel and muting the mic input, then pressing the respective keys and you should see the mute symbol change whilst you're holding them. If you use other voice chat programs like Skype that use different keys, don't forget to unmute your mic input and exit AHK first, otherwise no-one will be able to hear you!
If you want to edit the scripts and need to check the correct keynames to use with AHK, there's a list here http://www.autohotkey.com/docs/KeyList.htm
Let me know if you have any problems with the scripts or any questions and I'll do my best to help.