Project
InjectCraft
A DLL injector, auto-clicker and fly hack built from bare Win32 and Direct2D, with a fully custom in-game control panel. A learning project.
InjectCraft started as a way to learn Win32, Direct2D, DLL injection and thread synchronisation, and I wanted to build all of it by hand with no UI library. I tested it on Minecraft, but the injection, overlay and threading approach would work on any app with a window.

You start Minecraft, find its PID in Task Manager, type it into the injector’s digit boxes, set your options and press Inject. After that a few background threads inside the game process do the work.
Features
Auto-clicker. Left or right click at 10 to 22 CPS. The delays are jittered and there are occasional micro-bursts plus a slow drift, so the rhythm is not a flat line. A trigger key starts and stops it, and there is a configurable cooldown.
Fly hack. Creative-style flight in survival, with speed from 0.01 to 2.0 (vanilla is around 0.05). It works through JVM reflection from the injected DLL, so no mod is needed. Double-tap Space in game to take off. Fly state resets on death and world reload, so you re-toggle it after respawning. The panel reads the real in-game state when you open the Fly tab, so the switch never lies.
Debug overlay. A translucent HUD with live, average and expected CPS. I built it to check whether the humanization was actually doing anything while tuning.

The control panel
The panel floats inside the game and is drawn entirely with Direct2D. Sliders, rotary knobs, dropdowns, checkboxes, the digit-box PID input and the paired key selector are all widgets I wrote myself. It has three tabs: Sliders, Keys and Fly. Everything can be changed without re-injecting, and keybinds (F1 to F12 and middle mouse) are remappable in the app. By default F11 toggles the panel and F12 toggles the debug overlay.

Settings are written to a small binary file in %AppData%\AcApp, falling back to
%TEMP% if that folder cannot be written, so nothing needs reconfiguring next
session.
How it is put together
There are two projects. main.cpp is the injector host, a Win32 window that
injects the DLL. Addon.dll is the payload carrying the clicker, the fly logic
and the UI. Between them:
Graphicsis a thin wrapper over Direct2D and DirectWrite, andRendererlays out the main window.ControlPaneland the widget classes (Slider,Knob,Button,Checkbox,CustomDropdown,KeySelector,PidInput) make up the in-game UI.mclib.his a small C API over JVM reflection, used for fly, XP and item counts.Config.hppreads and writes the flat binary settings file.
What I learned
Drawing every widget myself taught me far more about Win32 and Direct2D than a UI library would have. The harder part was threading: the clicker, the fly logic and the renderer all run at once inside someone else’s process, and they have to share state safely.
Notes
- Build Release x64 for both projects. Compiling both yourself is recommended over downloading from releases, so the binaries match your machine.
- Built for learning, not competitive play. Anti-cheat such as EAC or VAC may detect injection no matter how the clicks look.
- Use it only on your own accounts or servers where it is allowed. Don’t use it to ruin anyone else’s game.
- I might add more to it later, but no promises, hence the paused status.