Guest User

Untitled

a guest
Dec 10th, 2024
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. #ifWinActive ahk_exe HorizonForbiddenWest.exe
  2. $F8::
  3. ImageSearch, FoundX, FoundY, 0, 0, 2880, 1620, C:\FWslash.bmp
  4. sleep 1
  5. if (errorLevel == 0) {
  6. send {space down}
  7. sleep 1
  8. send {space up}
  9. }
  10. return
  11.  
  12. $/::
  13. send {space down}
  14. while getkeystate("/", "P") {
  15. }
  16. send {space up}
  17. return
  18.  
  19. $`::
  20. send {lbutton down}
  21. loop {
  22. if not getkeystate("``", "P")
  23. break
  24. }
  25. send {lbutton up}
  26. return
  27.  
  28. $^;::
  29. SetTimer, run, 100
  30. return
  31.  
  32. $lshift::
  33. if getkeystate("rbutton", "P") {
  34. send {] down}
  35. sleep 5
  36. send {] up}
  37. sleep 5
  38. while getkeystate("lshift", "P") {
  39. }
  40. }
  41.  
  42. else {
  43. send {; up}
  44. SetTimer, run, off
  45. SetTimer, scan, off
  46. SetTimer, loot, off
  47. sleep 1
  48. SetTimer, run, 100
  49. SetTimer, scan, 2000
  50. SetTimer, loot, 100
  51. while getkeystate("lshift", "P") {
  52. }
  53. }
  54. return
  55.  
  56. $c::
  57. if (!crouch) {
  58. crouch := 1
  59. SetTimer, run, off
  60. send {; up}
  61. sleep 25
  62. send {c down}
  63. sleep 25
  64. send {c up}
  65. while (getkeystate("c", "P")) {
  66. }
  67. }
  68.  
  69. else if (crouch) {
  70. crouch := 0
  71. send {; up}
  72. send {c down}
  73. sleep 25
  74. send {c up}
  75. sleep 1
  76. SetTimer, run, 100
  77. while (getkeystate("c", "P")) {
  78. }
  79. }
  80.  
  81. while (getkeystate("c", "P")) {
  82. }
  83. return
  84.  
  85. run:
  86. ;ImageSearch, FoundA, FoundB, 2689, 130, 2702, 147, C:\FWcompass2.bmp
  87. ;sleep 1
  88. ;if (errorLevel == 0) {
  89. send {; down}
  90. ;}
  91. return
  92.  
  93. scan:
  94. ImageSearch, FoundX, FoundY, 2689, 130, 2702, 147, C:\FWcompass2.bmp
  95. if (errorLevel == 0) {
  96. if not (getkeystate("space", "P") || getkeystate("e", "P") || getkeystate("rbutton", "P")) {
  97. send {/ down}
  98. sleep 350
  99. send {/ up}
  100. }
  101. }
  102. return
  103.  
  104. loot:
  105. ImageSearch, FoundX, FoundY, 2689, 130, 2702, 147, C:\FWcompass2.bmp
  106. if (errorLevel == 0) {
  107. if not (getkeystate("space", "P") || getkeystate("e", "P") || getkeystate("rbutton", "P")) {
  108. send {= down}
  109. sleep 25
  110. send {= up}
  111. sleep 25
  112. }
  113. }
  114. return
  115.  
  116. $e::
  117. if getkeystate("rbutton", "P") {
  118. send {e down}
  119. sleep 5
  120. send {e up}
  121. }
  122.  
  123. if not getkeystate("rbutton", "P") {
  124. loop, 10 {
  125. if not getkeystate("e", "P")
  126. break
  127. sleep 1
  128. }
  129.  
  130. if not getkeystate("e", "P") {
  131. send {e down}
  132. sleep 1
  133. send {e up}
  134. sleep 1
  135. }
  136.  
  137. else if getkeystate("e", "P") {
  138. SetTimer, run, off
  139. sleep 1
  140. send {e down}
  141. while getkeystate("e", "P") {
  142. send {= down}
  143. sleep 1
  144. send {= up}
  145. sleep 1
  146. }
  147. loop, 10 {
  148. send {e down}
  149. sleep 1
  150. send {e up}
  151. sleep 1
  152. }
  153. sleep 1
  154. send {; up}
  155. sleep 50
  156. SetTimer, run, 100
  157. }
  158. }
  159. return
  160.  
  161. $v::
  162. send {/ up}
  163. sleep 25
  164. send {v down}
  165. sleep 5
  166. send {v up}
  167. while getkeystate("v", "P") {
  168. }
  169. return
  170.  
  171. $escape::
  172. SetTimer, scan, off
  173. SetTimer, loot, off
  174. SetTimer, run, off
  175. send {; up}
  176. send {escape down}
  177. sleep 1
  178. send {escape up}
  179. sleep 250
  180. SetTimer, run, 100
  181. SetTimer, scan, 2000
  182. SetTimer, loot, 100
  183. return
  184.  
  185. $space::
  186. while (getkeystate("space", "P")) {
  187. send {space down}
  188. sleep 5
  189. send {space up}
  190. sleep 5
  191. }
  192. return
Advertisement
Add Comment
Please, Sign In to add comment