Advertisement
Guest User

recordings Multiple Push-To-Talk keys using Dxtory with AHK

a guest
Oct 12th, 2013
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. ;recordings Multiple Push-To-Talk keys using Dxtory with AutoHotKeys
  2. ;---------------------------------------------
  3.  
  4.  
  5.  
  6. ;---------------------------------------------
  7. ;Currently working for:
  8. ;Arma 2 OA with ACRE mod
  9. ;---------------------------------------------
  10.  
  11.  
  12.  
  13.  
  14. ;version 1.21 By Dzuari
  15. ;---------------------------------------------
  16. ;Special thanks too:
  17. ;Barrow
  18. ;Harrier
  19. ;Frag85
  20. ;Rafferty
  21. ;bozz
  22. ;---------------------------------------------
  23.  
  24.  
  25. ;AHK Key List http://www.autohotkey.com/docs/KeyList.htm
  26.  
  27.  
  28. ;---------------------------------------------
  29. ;Default Radio PTT Button = Capslock
  30. ;Default Direct PTT Button = Mouse button 2(XButton2)
  31. ;Default Dead Key for ACRE radio = Home
  32. ;Default Dead key for Dxtory = =
  33. ;Default Dxtory "Start/Stop Movie Capture = "NumpadDot"
  34. ;---------------------------------------------
  35.  
  36.  
  37.  
  38. ;INSTRUCTIONS READ ME
  39. ;---------------------------------------------
  40. ;Download Autohotkeys and past this script into it
  41. ;follow instructions below
  42.  
  43. ;set (=) key to your PTT in dxtory
  44.  
  45. ;To change radio button, just edit code below and
  46. ;replace capslock with your key
  47.  
  48. ;To change direct chat button, just edit code below
  49. ;and replace XButton2 with your key
  50.  
  51. ;To change Dxtory PTT key, change script (=) to your key
  52.  
  53. ;if your dxtory isn't stopping when you hit your Start/Stop
  54. ;key to record. Change "Start/Stop Movie Capture" at bottom
  55. ;of script to match the key you use for Dxtory start/stop
  56.  
  57. ;This script only works in Arma 2 OA, to change that
  58. ;edit script below by finding "ahk_class ArmA 2 OA"
  59. ;and change "Arma 2 OA" to the game of your choice
  60. ;---------------------------------------------
  61.  
  62.  
  63. ;ACRE
  64. ;---------------------------------------------
  65. ;You must find ACRE_Keys.hpp in your Arma directory
  66. ;and edit "class PTTRadio" to be home key(199)
  67.  
  68. ;To change ACRE radio dead key, change Home to your key
  69. ;you must also edit ACRE_Keys.hpp to match AutoHotKey's key
  70. ;---------------------------------------------
  71.  
  72.  
  73.  
  74. ;EXPLINATION
  75. ;---------------------------------------------
  76. ;this script works by actually setting your ACRE radio
  77. ;to the Home key but AutoHotkey activates home when you press
  78. ;Capslock, so you will still use Capslock as your radio
  79. ;Key but behind the scene, home is your actual radio key
  80.  
  81. ;don't ask cause i can't tell you why, but if you don't set
  82. ;ACRE_Keys.hpp to your home key(199), bad things will happen
  83. ;very odd, unexplainable things.
  84. ;---------------------------------------------
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93. ;Don't Touch
  94. ;---------------------------------------------
  95. #SingleInstance, Force
  96. SendMode, input
  97. ;---------------------------------------------
  98.  
  99.  
  100.  
  101. ;Sets AHK to only work In Arma 2 OA
  102. ;---------------------------------------------
  103. #IfWinActive, ahk_class ArmA 2 OA
  104. ;---------------------------------------------
  105.  
  106.  
  107.  
  108.  
  109.  
  110. ;---------------------------------------------
  111. ;Radio chat button
  112.  
  113. $Capslock:: Send, {Home down}{= down}
  114. $Capslock Up:: Send, {Home up}{= up}
  115. ;---------------------------------------------
  116.  
  117.  
  118.  
  119.  
  120. ;---------------------------------------------
  121. ;direct chat button
  122.  
  123. ~XButton2::
  124. {
  125. Send, {= down}
  126. Return
  127. }
  128. ~XButton2 up::
  129. {
  130. Send, {= up}
  131. Return
  132. }
  133. ;---------------------------------------------
  134.  
  135.  
  136.  
  137. ;---------------------------------------------
  138. ;AutoHotKey "Start/Stop Movie Capture" key
  139. $NumpadDot::send, {NumpadDot}
  140. ;---------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement