Below is a simple AutoHotkey (AHK) script that toggles the player's movement to walk in circles by holding down the W (forward) and D (strafe/turn right) keys. This is a common method in many games (e.g., MMOs like World of Warcraft or FPS games) to make the character move in a rightward circle, often used for AFK prevention or similar purposes.
Assumptions:
Your game uses standard WASD controls (W for forward, D for strafe/turn right).
Holding W + D results in a circular path (forward while turning/strafing right). If your game behaves differently (e.g., A/D are for turning vs. strafing), you may need to adjust the keys (e.g., swap D for A to circle left).
This script holds the keys down continuously when toggled on, which should keep the character moving in a circle indefinitely until toggled off.
Test this in your game to ensure it works as expected—some games may ignore simulated inputs or require focus.
Save this as a .ahk file (e.g., circle_walk.ahk), then run it with AutoHotkey.
autohotkey
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force ; Ensure only one instance runs.
; Toggle variable
toggle := 0
; Hotkey: F1 to toggle circling on/off
F1::
toggle := !toggle
if (toggle) {
Send {w down}{d down} ; Hold W (forward) and D (strafe/turn right) to circle
ToolTip, Circling ON (Press F1 to stop)
} else {
Send {w up}{d up} ; Release keys to stop
ToolTip, Circling OFF
}
SetTimer, RemoveToolTip, -2000 ; Remove tooltip after 2 seconds
return
; Timer to remove the tooltip
RemoveToolTip:
ToolTip
return
How to Use:
Run the script (double-click the .ahk file).
Switch to your game window.
Press F1 to start circling (the character should begin moving forward while turning/strafing right in a circle).
Press F1 again to stop (releases the keys).
A tooltip will briefly appear in the top-left corner to confirm the state.
Customization:
Change circle direction: Replace {d down} and {d up} with {a down} and {a up} to circle left instead.
Adjust keys: If your game uses different keys (e.g., arrow keys), replace w and d accordingly.
Add mouse turning: If key-only circling doesn't work well in your game, you could add mouse movement for smoother circles. Let me know if you need that (e.g., slowly moving the mouse right while holding W).
Speed/Intensity: If the circle is too tight/loose, you might need in-game adjustments or add delays, but this simple hold usually suffices.
Game focus: The script sends inputs to the active window, so ensure your game is focused.
Warnings:
Use this responsibly—some games detect and ban for automation/macros.
If the script doesn't work (e.g., due to anti-cheat), try running AHK as administrator or test in a non-game environment.
To exit the script entirely, right-click its tray icon and select "Exit."
If this doesn't work for your specific game or you need modifications (e.g., adding mouse movement, delays, or different keys), provide more details!