Last active
October 15, 2022 13:07
-
-
Save jives/f6387e99642cbaa8c816 to your computer and use it in GitHub Desktop.
Anti AFK AHK script for WoW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; Ade's Anti AFK AHK script for WoW | |
; | |
; | |
; How to use this script | |
; | |
; Make sure WoW is running | |
; Start this script by right clicking on it and selecting "Run Script" | |
; Press Shift+Ctrl+F9 to activate the script | |
; You can minimize WoW if you wish | |
; Commands will be sent to WoW only, not to other windows/processes | |
; Press Shift+Ctrl+F9 to deactivate the script | |
; | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
WinGet, wowid, ID, World of Warcraft | |
$^+F9:: | |
if (enable := !enable) | |
setTimer, MoveAround, -1 | |
return | |
MoveAround: | |
while enable | |
{ | |
ifWinExist, ahk_id %wowid% | |
{ | |
ControlSend,, {w down}, ahk_id %wowid% | |
Sleep, 100 | |
ControlSend,, {w up}, ahk_id %wowid% | |
Sleep, 250 | |
ControlSend,, {a down}, ahk_id %wowid% | |
Sleep, 100 | |
ControlSend,, {a up}, ahk_id %wowid% | |
Sleep, 600 | |
ControlSend,, {d down}, ahk_id %wowid% | |
Sleep, 100 | |
ControlSend,, {d up}, ahk_id %wowid% | |
Sleep, 400 | |
ControlSend,, {s down}, ahk_id %wowid% | |
Sleep, 220 | |
ControlSend,, {s up}, ahk_id %wowid% | |
Sleep, 300 | |
ControlSend,, {Space}, ahk_id %wowid% | |
Random, r, 5000, 15000 | |
Sleep r | |
} | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey man, I used to use this script. But somehow it doesn't work for me anymore. Any tips?