Advertisement
Guest User

Ark AutoHotkey Script

a guest
Mar 5th, 2016
5,301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;; Ark autohotkey script
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4.  
  5. #NoEnv
  6. #Warn
  7. SendMode Input
  8. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  9.  
  10. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  11. ;; Global variables for toggles
  12. toggle_attack := 0
  13. toggle_e := 0
  14. toggle_run := 0
  15.  
  16. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  17. ;; Autoattack macro
  18. ;; Press F3 to toggle on/off
  19.  
  20. arkAutoAttack:
  21. IfWinActive ARK: Survival Evolved
  22. {
  23. SendEvent {Click}
  24. }
  25. else
  26. {
  27. SetTimer, arkAutoAttack, off
  28. }
  29. return
  30.  
  31. F3::
  32. if toggle_attack = 0
  33. {
  34. toggle_attack = 1
  35. SetTimer, arkAutoAttack, 100
  36. ToolTip, AUTO ATTACK, 10, 10, 1
  37. }
  38. else
  39. {
  40. toggle_attack = 0
  41. SetTimer, arkAutoAttack, off
  42. Tooltip, , , , 1
  43. }
  44. return
  45. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  46.  
  47. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  48. ;; Auto E macro
  49. ;; Press F4 to toggle on/off
  50.  
  51. arkAutoE:
  52. IfWinActive ARK: Survival Evolved
  53. {
  54. Send, e
  55. }
  56. else
  57. {
  58. SetTimer, arkAutoE, off
  59. }
  60. return
  61.  
  62. F4::
  63. if toggle_e = 0
  64. {
  65. toggle_e = 1
  66. SetTimer, arkAutoE, 100
  67. ToolTip, AUTO E, 10, 30, 2
  68. }
  69. else
  70. {
  71. toggle_e = 0
  72. SetTimer, arkAutoE, off
  73. Tooltip, , , , 2
  74. }
  75. return
  76. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  77.  
  78. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  79. ;; Autorun macro
  80. ;; Press F1 to toggle on/off
  81.  
  82. arkAutoRun:
  83. IfWinNotActive ARK: Survival Evolved
  84. {
  85. SendInput {w up}
  86. SetTimer, arkAutoRun, off
  87. toggle_run = 0
  88. }
  89. return
  90.  
  91. F1::
  92. IfWinNotActive ARK: Survival Evolved
  93. return
  94. if toggle_run = 0
  95. {
  96. SendInput {w down}
  97. SetTimer, arkAutoRun, 200
  98. toggle_run = 1
  99. ToolTip, AUTO RUN, 10, 50, 3
  100. }
  101. else
  102. {
  103. toggle_run = 0
  104. SendInput {w up}
  105. SetTimer, arkAutoRun, off
  106. Tooltip, , , , 3
  107. }
  108. return
  109. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  110.  
  111.  
  112. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  113. ;; 50 clicks macro
  114. ;; Press F5 to click 50 times at mouse position
  115. F5::
  116. Loop 50
  117. {
  118. Click
  119. Sleep 20
  120. }
  121. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement