Advertisement
Guest User

recordings Multiple PTT keys using Dxtory with AutoHotKey

a guest
Oct 12th, 2013
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. ;recordings Multiple Push-To-Talk keys using Dxtory with AutoHotKeys
  2.  
  3. ;Currently working for:
  4. ;Arma 2 OA with ACRE mod
  5.  
  6.  
  7.  
  8. ;Download Autohotkeys and past this script into it
  9. ;follow instructions below
  10.  
  11. ;version 1.2 By Dzuari
  12.  
  13. ;Special thanks too:
  14. ;Barrow
  15. ;Harrier
  16. ;Frag85
  17. ;Rafferty
  18. ;bozz
  19.  
  20. ;Default Radio PTT Button = Capslock
  21. ;Default Direct PTT Button = Mouse button 2(XButton2)
  22. ;Default Dead Key for ACRE radio = Home
  23. ;Default Dead key for Dxtory = =
  24.  
  25. ;set (=) key to your PTT in dxtory
  26.  
  27. ;To change radio button, just edit code below and
  28. ;replace capslock with your key
  29.  
  30. ;To change direct chat button, just edit code below
  31. ;and replace XButton2 with your key
  32.  
  33. ;To change Dxtory PTT key, change (=) to your key
  34.  
  35.  
  36. ;You must find ACRE_Keys.hpp in your Arma directory
  37. ;and edit "class PTTRadio" to be home key(199)
  38.  
  39. ;To change ACRE radio dead key, change Home to your key
  40. ;you must also edit ACRE_Keys.hpp to match AutoHotKey's key
  41.  
  42.  
  43.  
  44. ;this script works by actually setting your ACRE radio
  45. ;to the Home key but AutoHotkey activates home when you press
  46. ;Capslock, so you will still use Capslock as your radio
  47. ;Key but behind the scene, home is your actual radio key
  48.  
  49. ;don't ask cause i can't tell you why, but if you don't set
  50. ;ACRE_Keys.hpp to your home key(199), bad things will happen
  51. ;very odd, unexplainable things.
  52.  
  53.  
  54.  
  55. #SingleInstance, Force
  56. SendMode, input
  57.  
  58. #IfWinActive, ahk_class ArmA 2 OA
  59.  
  60.  
  61. ;Radio chat button
  62.  
  63. $Capslock:: Send, {Home down}{= down}
  64. $Capslock Up:: Send, {Home up}{= up}
  65.  
  66.  
  67.  
  68. ;direct chat button
  69.  
  70. ~XButton2::
  71. {
  72. Send, {= down}
  73. Return
  74. }
  75. ~XButton2 up::
  76. {
  77. Send, {= up}
  78. Return
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement