Driven by my desire to learn a new programming language, I chose Rust and developed GameTools—an efficient and lightweight solution I had been seeking for quite some time.
GameTools is built entirely in Rust and can run on any system that supports it. Please note that GameTools is a command-line application, designed for speed and efficiency.
Currently, GameTools offers two main features:
- Anti-AFK: Default command: Left Control + P
- Auto-Run: Default command: Left Control + K
These settings can be customized; see the Configuration section.
If you're not interested in modifying or contributing to this project, you can download the latest release or the latest version of GameTools for your platform:
Note: On Linux, you may need to install or update the x11 library, which enables interaction with the system's graphical environment.
If an executable is unavailable for your platform or you've modified the code, you can build the application using the following command (assuming you have Rust installed):
cargo build --release
GameTools generates a JSON configuration file named configs.json
in the same directory as the executable. By default, it contains:
{
"macro_start_afk": [
"ControlLeft",
"KeyP"
],
"macro_stop_afk": [
"ControlLeft",
"KeyI"
],
"macro_start_auto_run": [
"ControlLeft",
"KeyK"
],
"macro_stop_auto_run": [
"ControlLeft",
"KeyL"
],
"run_key": "ShiftLeft"
}
Each key represents a command, and its value (typically an array) defines the shortcut to trigger that command. The run_key
is used specifically for auto-run functionality, such as holding down the run key in games like Minecraft, where Shift isn't the default run key.
You can use the same shortcut for both activation and deactivation, but a separate deactivation shortcut is supported for accessibility reasons.
To activate the macro_start_afk
command using Ctrl + Shift + A + Z
, modify the JSON file as follows:
{
"macro_start_afk": [
"ControlLeft",
"ShiftLeft",
"KeyA",
"KeyZ"
]
}
For any questions, feel free to contact me via Discord.