A powerful AutoHotkey v2 game macro tool with pixel detection, skill rotation, and automation capabilities.
Game Macro is a professional game automation tool designed for games requiring precise pixel detection and complex skill rotations. It features a modular architecture, multi-threading support, intelligent rule engine, and real-time debugging capabilities.
- Pixel Detection Engine: High-performance screen pixel capture based on DXGI
- Skill Rotation System: Support for complex skill rotations and conditional judgments
- Multi-threading Support: Configurable independent execution threads
- Intelligent Rule Engine: Condition-based automation decision system
- Modular Architecture: Clear code organization and easy extensibility
- Real-time Debugging: Built-in debugging tools and logging system
- Multi-language Support: Switch between Chinese and English interfaces
- Configuration Management: Complete configuration import/export functionality
- BUFF Timer: Automatic monitoring and management of buff effects
- Skill Debugger: Real-time viewing of cast bars and skill status
- Capture Diagnostics: Detailed pixel capture performance analysis
- Black Screen Protection: Intelligent detection and avoidance of black screen states
- Windows 10/11 operating system
- AutoHotkey v2.0 or higher
- Administrator privileges (for screen capture)
-
Download Project
git clone https://github.com/bruceli0305/game-macro.git cd game-macro -
Install Dependencies
- Ensure AutoHotkey v2 is installed
- Project includes pre-compiled DXGI libraries, no additional installation needed
-
Run Program
# Double-click Main.ahk to run # Or use command line AutoHotkey64.exe Main.ahk
- First Run: Program automatically creates necessary configuration files and directories
- Interface Language: Switch between Chinese and English in settings
- Hotkey Configuration: Default uses F9 key to start/stop macro
- Open "Skills" page
- Add skill name, hotkey, and pixel detection position
- Configure color tolerance and detection parameters
- Create rules in "Rotation Rules" page
- Set trigger conditions and execution actions
- Configure priority and cooldown times
- Manage execution threads in "Thread Configuration" page
- Assign different skills and rules to different threads
- Set thread priority and scheduling strategies
Config/AppConfig.ini- Application global configurationLanguages/- Language files directoryProfiles/- User profile directory
[General]
Language=zh-CN
Version=0.1.3
[Logging]
Level=DEBUG
RotateSizeMB=10
RotateKeep=5The project uses modular design, making it easy to add new features:
- Add New Engine: Create new engine in
modules/engines/directory - Extend UI Pages: Add new pages in
modules/ui/pages/ - Custom Rules: Extend condition judgment logic through RuleEngine
Core modules provide clear API interfaces:
Core_Init()- Initialize core systemLogger_Info()- Log recordingRotation_Start()- Start rotation enginePixel_GetColor()- Pixel color acquisition
Q: Program cannot run with administrator privileges A: Right-click Main.ahk and select "Run as administrator"
Q: Pixel detection is inaccurate A: Check color tolerance settings, use capture diagnostics tool for debugging
Q: Hotkey conflicts A: Modify default hotkeys in hotkey configuration page
Program generates detailed log files in Logs/ directory:
- Use "Log Viewer" page for real-time monitoring
- Or directly view log files for debugging
- Version: v0.2.0
- Release Date: 2024
- Main Features: Complete modular refactoring, added multi-language support
- v0.1.0 - Basic functionality implementation
- v0.1.3 - UI optimization and stability improvements
- v0.2.0 - Modular refactoring, added advanced features
Welcome to submit Issues and Pull Requests to improve the project:
- Fork the project
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License. See LICENSE file for details.
This tool is for learning and research purposes only. Please comply with the terms of use of relevant games. The developers are not responsible for any consequences resulting from the use of this tool.
Note: Using game macros may violate the terms of service of some games. Please use this tool in a legal and compliant manner.