Advertisement
Guest User

AHK Multi PTT hotkey recording for Dxtory

a guest
Oct 11th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1.  
  2.  
  3. ;Version 1.0
  4.  
  5. ;Default radio key is Capslock
  6. ;Default Direct talk key is Mouse button 2(XButton2)
  7.  
  8. ;This Code by default will map Mouse button 2(Xbutton2) as your direct speak button and Capslock will be your Radio
  9. ;Button.
  10.  
  11. ;To set custom radio button, Replace "Capslock" with your radio button.
  12. ;To set custom Direct Channel Button, Replace "Xbutton2" with your custom button.
  13. ;To set specific dead key, replace all "F12" with specific key.
  14.  
  15.  
  16. ;To run in Arma 3, line "#IfWinActive, ahk_class ArmA 2 OA" will have to be edited
  17. ;replace "Arma 2 OA" with "Arma 3". Currently untested in V1.0
  18.  
  19. ;to test if script is working properly, delete the Semicolon infront of "soundbeep"
  20. ;Reload script and cycle your buttons, you should hear a beep, Replace Semicolon to mute.
  21.  
  22. ;refer to this link for keylists http://www.autohotkey.com/docs/KeyList.htm
  23.  
  24.  
  25.  
  26.  
  27. ;code
  28.  
  29.  
  30.  
  31.  
  32. #IfWinActive, ahk_class ArmA 2 OA
  33. ~Capslock::
  34. ;
  35. SendInput, {F12 down}
  36. Keywait, Capslock
  37. SendInput, {F12 up}
  38.  
  39. ~XButton2::
  40. ;
  41. SendInput, {F12 down}
  42. ;soundbeep
  43. Keywait, XButton2
  44. SendInput, {F12 up}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement