Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Ark autohotkey script
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- #NoEnv
- #Warn
- SendMode Input
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Global variables for toggles
- toggle_attack := 0
- toggle_e := 0
- toggle_run := 0
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Autoattack macro
- ;; Press F3 to toggle on/off
- arkAutoAttack:
- IfWinActive ARK: Survival Evolved
- {
- SendEvent {Click}
- }
- else
- {
- SetTimer, arkAutoAttack, off
- }
- return
- F3::
- if toggle_attack = 0
- {
- toggle_attack = 1
- SetTimer, arkAutoAttack, 100
- ToolTip, AUTO ATTACK, 10, 10, 1
- }
- else
- {
- toggle_attack = 0
- SetTimer, arkAutoAttack, off
- Tooltip, , , , 1
- }
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Auto E macro
- ;; Press F4 to toggle on/off
- arkAutoE:
- IfWinActive ARK: Survival Evolved
- {
- Send, e
- }
- else
- {
- SetTimer, arkAutoE, off
- }
- return
- F4::
- if toggle_e = 0
- {
- toggle_e = 1
- SetTimer, arkAutoE, 100
- ToolTip, AUTO E, 10, 30, 2
- }
- else
- {
- toggle_e = 0
- SetTimer, arkAutoE, off
- Tooltip, , , , 2
- }
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Autorun macro
- ;; Press F1 to toggle on/off
- arkAutoRun:
- IfWinNotActive ARK: Survival Evolved
- {
- SendInput {w up}
- SetTimer, arkAutoRun, off
- toggle_run = 0
- }
- return
- F1::
- IfWinNotActive ARK: Survival Evolved
- return
- if toggle_run = 0
- {
- SendInput {w down}
- SetTimer, arkAutoRun, 200
- toggle_run = 1
- ToolTip, AUTO RUN, 10, 50, 3
- }
- else
- {
- toggle_run = 0
- SendInput {w up}
- SetTimer, arkAutoRun, off
- Tooltip, , , , 3
- }
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; 50 clicks macro
- ;; Press F5 to click 50 times at mouse position
- F5::
- Loop 50
- {
- Click
- Sleep 20
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement