Snow_Flake

COH2 AHK script

Sep 18th, 2014
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #IfWinActive, Company Of Heroes 2  
  2. {
  3.  
  4. SetCapsLockState, AlwaysOff
  5.  
  6. F2::Send {Enter}Hi.. gl and hf{!}{Enter}
  7.  
  8. F3::Send +{Enter}Hi all.. gl and hf{!}+{Enter}
  9.  
  10.  
  11. ; F1 toggles this script on/off
  12. F1::Suspend
  13.  
  14. ;Return enables normal chat
  15. Return::
  16. Suspend
  17.  
  18.   if ( A_IsSuspended ){
  19.     Send {Enter}
  20.   }
  21.  
  22.   if ( !A_IsSuspended ){
  23.     Send {Enter}
  24.   }
  25. return
  26.  
  27. ;Shift + return enables normal chat
  28. +Return::
  29.   Suspend
  30.  
  31.   if ( A_IsSuspended ) {
  32.     Send +{Enter}
  33.   }
  34.  
  35.   if ( !A_IsSuspended ) {
  36.     Send +{Enter}
  37.   }
  38. return
  39.  
  40. +a::Send,{a}      ;shift+wsad sends original key
  41. +s::Send,{s}
  42. +d::Send,{d}
  43. +w::Send,{w}
  44.  
  45.  
  46. w::Up ;and wsad is used as arrows
  47. s::Down
  48. a::Left
  49. d::Right
  50.  
  51. ;z::y    in case qwerty / qwertz mixup
  52.  
  53.  
  54. ; mousewheel to navigate in unit groups
  55. WheelDown::send ^{Tab}
  56. WheelUp::send {Tab}
  57.                                                                
  58.  
  59. }
Add Comment
Please, Sign In to add comment