Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;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}
- ;---------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement