Skip to content

Instantly share code, notes, and snippets.

@jives
Last active October 15, 2022 13:07
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jives/f6387e99642cbaa8c816 to your computer and use it in GitHub Desktop.
Save jives/f6387e99642cbaa8c816 to your computer and use it in GitHub Desktop.
Anti AFK AHK script for WoW
;
; 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
@g0sy
Copy link

g0sy commented May 24, 2017

Hey man, I used to use this script. But somehow it doesn't work for me anymore. Any tips?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment