Turn your ordinary mouse and keyboard into a full macro rig. Record clicks, keystrokes, movements and delays with a single press — then loop them, trigger them by key, pixel or on-screen color, and fire them from any hotkey. Built for gamers, handy for every repetitive task.
TG Macro (also known as TGM) is a free, open-source macro recorder and player for Windows. Instead of buying a programmable mouse or keyboard, you record a sequence of mouse movements, button clicks, key presses and precise delays — then replay it as many times as you like. Assign every macro to a hotkey, loop it a fixed number of times or infinitely, and even trigger it automatically when a specific color or pixel appears on screen. It's ultra-portable at around 800 KB, needs no installation, and is built for gamers yet flexible enough for any repetitive desktop task.
Record, trigger, loop and edit — a complete macro toolkit in one tiny window.

Hit Ctrl + F10 and TG Macro captures your mouse movements, mouse buttons, keyboard keys and the exact delays between them.

Fire a macro exactly when you want it. Trigger on keystrokes / button inputs or on color / pixel changes at a screen position — perfect for reacting to what happens in a game.
Run any macro a set number of times or infinitely — ideal for grinding, farming and other repetitive tasks.
Bind saved macros to any key and fire them instantly — no need to open the window while you play or work.
Add, edit, duplicate, reorder and group individual actions — build complex automation step by step.
Process up to 500 inputs per second from a ~800 KB portable app with no dependencies to install.
A clean, modern interface with the controls exactly where you expect them.
Every toggle you need lives in one place — start behavior, sounds, tray, controller support and more. Pick from four built-in themes and set your own activation and record shortcuts.
Enable on start, load last macro, hide to tray, controller support and self-input filtering.
Orange, dark, black and a clean light theme — switch any time from Settings.
Override the input limit, legacy mode and an enable/disable key for any single macro.
Grab the Download for Windows file — it's only around 800 KB.
Double-click to launch. It's portable — nothing to install. On SmartScreen, choose More info → Run anyway.
Open Record Settings, pick what to capture, then press Ctrl+F10 to start and stop.
Set a loop mode, assign a hotkey, and fire your macro whenever you need it.
One small file. No installer, no sign-up, no catch.
Yes. TG Macro is completely free to download and use. It's an open-source macro recorder created by the developer "trksyln", with no paywalls or locked features.
No. TG Macro is portable — the download is a single ~800 KB file that you simply run. Nothing is installed, and you can carry it on a USB drive. You do need Microsoft .NET Framework 4.8 or later, which most Windows PCs already have.
TG Macro is safe to use. Because it's a small independent tool, Windows SmartScreen may show an "unknown publisher" prompt the first time you run it — click More info → Run anyway to continue. Always download it from the official source.
It's built for gamers — record actions, loop them, and trigger them by keypress, pixel event or on-screen color. That said, some online games prohibit automation in their terms of service, so check each game's rules before using macros.
The current version processes up to 500 inputs per second — roughly 7× faster than earlier releases — so even dense, delay-sensitive macros replay accurately. You can also cap the input limit (KPS) per macro.