Jump to content
Sign in to follow this  
dzuari

Recording Multiple PTT keys using Dxtory (ACRE compatible)

Recommended Posts

Tired of having to editing your boring real life audio out of your way more awesome video game audio because you can't set dxtory to multiple PTT buttons? Well not anymore your not.

Some guys and I at ShackTac came up with this code for AutoHotKey that allows you to record multiple PTT keys if you are running radios. This works by mapping your radio and direct chat buttons to a dead key, then setting that dead key as your PTT key inside Dxtory, probably works with fraps too but hasn't been tested. This way you will only record audio when either of your keys are pressed.

______________________________________________________________________________

Recording Multiple PTT keys using Dxtory through AutoHotKeys V1.2 10/11/2013

Current Code: 1.21 http://pastebin.com/gQnZLtCB#

Default Radio = Capslock

Default Direct = Mouse button 2(XButton2)

Default Dead Key for radio = Home

Default dead key for Dxtory Record = (=)

Explanation

This script works by setting your ACRE Radio hotkey to (home) key, then AutoHotKey will active (home) every time you hit Capslock. It will also active (=) key which will activate Dxtory's PTT and start recording your voice.

Don't ask me why you have to reroute your ACRE radio to Home and can't just use Capslock like always, I have no idea why but bad/weird things happen if you don't reroute ACRE radio to Home key(or any other dead key of your choice).

Photo Explination

http://imgur.com/h2plUXd

h2plUXdl.jpg

Currently Status of beta code: n/a

Tutorial

1. Download AutoHotKey

http://www.autohotkey.com/

install.

2. Run AutoHotKey

fe1H9VX.png

3. Right click Icon in bottom right corner & click "Edit This Script"

qFtErv4.png

4. Copy and past this code, read beginning lines to set custom buttons.

Default Radio PTT Button = Capslock

Default Direct PTT Button = Mouse button 2(XButton2)

Default Dead Key for ACRE radio = Home

Default Dead key for Dxtory = (=)

Version 1.21 http://pastebin.com/gQnZLtCB#

;recordings Multiple Push-To-Talk keys using Dxtory with AutoHotKeys
;---------------------------------------------



;---------------------------------------------
;Currently working for:
;Arma 2 OA with ACRE mod
;---------------------------------------------




;version 1.21 By Dzuari
;---------------------------------------------
;Special thanks too:
;Barrow
;Harrier
;Frag85
;Rafferty
;bozz
;---------------------------------------------


;AHK Key List http://www.autohotkey.com/docs/KeyList.htm


;---------------------------------------------
;Default Radio PTT Button = Capslock
;Default Direct PTT Button = Mouse button 2(XButton2)
;Default Dead Key for ACRE radio = Home
;Default Dead key for Dxtory = =
;Default Dxtory "Start/Stop Movie Capture = "NumpadDot"
;---------------------------------------------



;INSTRUCTIONS READ ME
;---------------------------------------------
;Download Autohotkeys and past this script into it
;follow instructions below

;set (=) key to your PTT in dxtory

;To change radio button, just edit code below and
;replace capslock with your key

;To change direct chat button, just edit code below
;and replace XButton2 with your key

;To change Dxtory PTT key, change script (=) to your key

;if your dxtory isn't stopping when you hit your Start/Stop
;key to record. Change "Start/Stop Movie Capture" at bottom
;of script to match the key you use for Dxtory start/stop

;This script only works in Arma 2 OA, to change that
;edit script below by finding "ahk_class ArmA 2 OA"
;and change "Arma 2 OA" to the game of your choice
;---------------------------------------------


;ACRE
;---------------------------------------------
;You must find ACRE_Keys.hpp in your Arma directory
;and edit "class PTTRadio" to be home key(199)

;To change ACRE radio dead key, change Home to your key
;you must also edit ACRE_Keys.hpp to match AutoHotKey's key
;---------------------------------------------



;EXPLINATION
;---------------------------------------------
;this script works by actually setting your ACRE radio
;to the Home key but AutoHotkey activates home when you press
;Capslock, so you will still use Capslock as your radio
;Key but behind the scene, home is your actual radio key

;don't ask cause i can't tell you why, but if you don't set
;ACRE_Keys.hpp to your home key(199), bad things will happen
;very odd, unexplainable things.
;---------------------------------------------








;Don't Touch
;---------------------------------------------
#SingleInstance, Force
SendMode, input
;---------------------------------------------



;Sets AHK to only work In Arma 2 OA
;---------------------------------------------
#IfWinActive, ahk_class ArmA 2 OA
;---------------------------------------------





;---------------------------------------------
;Radio chat button

$Capslock:: Send, {Home down}{= down}
$Capslock Up:: Send, {Home up}{= up}
;---------------------------------------------




;---------------------------------------------
;direct chat button

~XButton2::
{
       Send, {= down}
       Return
}
~XButton2 up::
{
       Send, {= up}
       Return
}
;---------------------------------------------



;---------------------------------------------
;AutoHotKey "Start/Stop Movie Capture" key
$NumpadDot::send, {NumpadDot}
;---------------------------------------------

Old Versions

1.2 http://pastebin.com/xZ7n7y6A 10/12/2013

1.1 http://pastebin.com/rxTRys89 10/11/2013

1.0 http://pastebin.com/0g7ruF0T# 10/10/2013

5. Right Click & Click "Reload This Script"

PR0hnVH.png

6. Change your PTT key in Dxtory to the dead key in the script.

GHTCMa1.png

Done

__________________________________________________________

To run AutoHotKeys on windows Startup

1.Locate file called "AutoHotKey.exe" at C:\Program Files\AutoHotkey

Copy File

doW8k2E.png

2. Click start menu, find file "Startup", right click and open

KZ98Nw2.png

3. Paste Shortcut into file

kS4PvnX.png

Done

Setting up ACRE & Arma hotkey

1. Find ACRE_Keys.hpp in your Arma 2 OA/Userconfig/ACRE directory

7HfRA3V.png

2. Change "class PTTRadio" key to default 199(home key) or the corresponding dead key you use in the AHK script.

gBpI4Dr.png

3. In Arma, set your "push to talk" key the same as your ACRE_keys & AutoHotKey key(default Home)

http://i.imgur.com/YEaYjCX.png (471 kB)

_________________________________________________________

Cites and documentation

AutoHotkey Documentation

http://www.autohotkey.com/docs/

List of Keys used for Autohotkey

http://www.autohotkey.com/docs/KeyList.htm

Code idea came from this thread, post #4(bottom)

http://www.autohotkey.com/board/topic/96109-arma-2-acre-dxtory/?hl=%2Bpush+%2Bbutton+%2Bdown

___________________________________________________

Special thanks to:

ShackTac

Barrow

Harrier

Frag85

Rafferty

bozz

Edited by dzuari

Share this post


Link to post
Share on other sites

Cant get it to work in Arma 3, changed ahk_class ArmA 2 OA to ahk_class ArmA 3, have you tried it in Arma 3?

UPDATE: Got it working in Arma 3, just deleted the ahk_class ArmA 3 command and the ;AutoHotKey "Start/Stop Movie Capture" key $NumpadDot::send, {NumpadDot} command.

Edited by ranger1979

Share this post


Link to post
Share on other sites
Cant get it to work in Arma 3, changed ahk_class ArmA 2 OA to ahk_class ArmA 3, have you tried it in Arma 3?

UPDATE: Got it working in Arma 3, just deleted the ahk_class ArmA 3 command and the ;AutoHotKey "Start/Stop Movie Capture" key $NumpadDot::send, {NumpadDot} command.

Ya it should be compatible with any game with multiple radios, i just didn't want to say it was without testing it first.

Share this post


Link to post
Share on other sites

This nearly works perfectly. Two problems I've had is when using the direct push to talk key, for me it is the Left Windows key (LWin in autohotkey) because I use teamspeak. When pressing this key it activates the radio, which shouldn't happen because the acre_keys key for the radio is Capslock. Also when pressing capslock it automatically puts a =+ in front of it.

Share this post


Link to post
Share on other sites

Any way to get this to work in arma 3? For whatever reason this script will crouch me whenever I use any of the hot keys.

Share this post


Link to post
Share on other sites

this is a good thread! is there a way to have multiple keys for acre anyway. I use joysticks when flying and I hate the fact I have to let go of the controls to press caps lock. I have two buttons for TS. which is great. one on the side of my mouse and the thumb button on the side of the main JS. What I would like is to have Caps lock for when I use the keys and assign another button on one of the JS's for when I fly.

Share this post


Link to post
Share on other sites

Hey,

I've tried this script and its not working for me. I downloaded Autohotkey version "1.1.09.04", which was released about the same time this article was made to my understanding. I did everything the tutorial told me to, set up the script file and tried to "reload script", but then Autohotkey has an error that says:

"Error at line 1.

Line Text: Default Radio PTT Button = Capslock

Error: This line does not contain a recognized action.

The program will exit."

I can't get beyond this step. It lets me edit the autohotkey file and save it, but if i close autohotkey and try to start it up again with the edited script, i get this message. Any ideas what I might've done wrong?

This is what I wrote in the file:

Default Radio PTT Button = Capslock

Default Direct PTT Button = Mouse button 1(XButton1)

Default Dead Key for ACRE radio = Home

Default Dead key for Dxtory = F12

My DxTory PTT is: F12

My direct talk PTT is my mouse side button which is closest to me.

I use CAPS for radio in ACRE.

Share this post


Link to post
Share on other sites

I've had a lot of luck with just using the separate streams that Dxtory outputs to the video file and having the microphone not set to use PTT and then in post I clean the audio up and then mute/strip the sections of audio where I'm not talking.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×