Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. ; Prevent access to environment
  2. #NoEnv
  3.  
  4. ; Prevent multiple instances
  5. #SingleInstance Force
  6.  
  7. ; Window name matching to 'contains'
  8. SetTitleMatchMode, 2
  9.  
  10. ; Detect Hidden Windows
  11. DetectHiddenWindows, On
  12.  
  13. ; Install the mouse hook to circumvent CryEngine
  14. #InstallMouseHook
  15.  
  16. ; Install the keyboard hook to circumvent CryEngine
  17. #InstallKeybdHook
  18.  
  19. ; The virtual keypress delays
  20. SetKeyDelay, 0, 0
  21.  
  22. ; Whether we are chatting (1 = yes, 0 = no)
  23. CHATTING = 0
  24.  
  25. ; Force all following hotkeys to only activate in MWO
  26. #IfWinActive ahk_class CryENGINE
  27.  
  28. ; All chat toggle
  29. ~T::
  30. CHATTING = 1
  31. return
  32.  
  33. ; Team chat toggle
  34. ~Y::
  35. CHATTING = 1
  36. return
  37.  
  38. ; Lance chat toggle
  39. ~G::
  40. CHATTING = 1
  41. return
  42.  
  43. ; Send chat toggle
  44. ~Enter::
  45. CHATTING = 0
  46. return
  47.  
  48. ; Cancel chat toggle
  49. ~Esc::
  50. CHATTING = 1
  51. return
  52.  
  53. ; The Quick Fire Backspace hack
  54. $Backspace::
  55. ; Prevent quick fire from happening outside of chat
  56. If (CHATTING = 1) {
  57. ; Send initial backspace
  58. Send {Backspace}
  59.  
  60. ; Wait and check if key is pressed
  61. Sleep, 200
  62. if (GetKeyState("Backspace", "P") = 0) {
  63. return
  64. }
  65.  
  66. ; Keep sending backspace presses until key is released
  67. Loop {
  68. Send {Backspace}
  69. Sleep, 60
  70. if (GetKeyState("Backspace", "P") = 0) {
  71. break
  72. }
  73. }
  74. }
  75. ; If not chatting send only 1 backspace
  76. else {
  77. Send {Backspace}
  78. }
  79. return
  80.  
  81. +e::
  82. Send T
  83. Sleep, 100
  84. Send Girl Power!
  85. Send {Enter}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement