🎮 ahk-game-scripts
A collection of AutoHotkey (AHK) scripts designed for game automation, smooth movement in a game, and quality-of-life improvements. This repository focuses on simple, lightweight, and game-friendly scripts that enhance controls without causing glitches or stuck keys.
🚀 Features
- ✅ WASD auto-sprint (Shift auto-hold)
- ✅ Smooth movement handling (no sprint glitch)
- ✅ Toggle-based scripts (ON / OFF support)
- ✅ Caps Lock to Shift remapping
- ✅ Performance-friendly & low latency
- ✅ Easy to customize and extend
📂 Scripts Included
🏃 WASD Auto Sprint
- Automatically holds Shift when pressing W / A / S / D
- Releases Shift when all movement keys are released
- Optional F8 toggle to enable or disable auto-sprint
File:wasd-auto-sprint-toggle.ahk
⌨️ Caps Lock → Shift (Hold)
- Caps Lock down → Shift down
- Caps Lock up → Shift up
- Useful for sprinting or holding actions in games
File:
capslock-to-shift-hold.ahk
⌨️ AHK Shift Movement Cycle Script While holding E:
- Shift stays pressed
- W → D → S → A movement cycle runs repeatedly
- Stops instantly when E is released
File:
shift-wasd-cycle.ahk
🛠 Requirements
- Windows OS
- AutoHotkey v1.x installed
⚠️ These scripts are written for AutoHotkey v1, not v2.
1️⃣ Install AutoHotkey
- Go to: https://www.autohotkey.com/
- Download AutoHotkey v1.x
- Install it normally (Next → Next → Finish)
2️⃣ Clone This Repository Open Command Prompt or Git Bash, then run:
'git clone https://github.com/your-username/ahk-game-scripts.git'
- Make sure AutoHotkey is installed on your system.
- Locate the
.ahkscript file. - Double-click the
.ahkfile
OR right-click → Run Script - The script will run in the background.
- A green H icon will appear in the system tray.
🛑 How to Exit / Stop a Script
Method 1: System Tray (Recommended)
- Look at the bottom-right corner of the screen.
- Find the green H icon.
- Right-click the icon.
- Click Exit.
Method 2: Exit All Scripts
- Right-click the green H icon.
- Select Exit All Scripts.
Method 3: Task Manager (Force Stop)
- Press Ctrl + Shift + Esc.
- Find AutoHotkey.exe.
- Select it and click End Task.
⌨️ Optional: Exit Using a Hotkey
Add the following line to any script:
F12::ExitApp