Macro Tool is a lightweight, high-performance keyboard macro and automation utility for Windows. Built with .NET 8, it enables background key simulation with millisecond precision, allowing you to automate repetitive tasks in specific windows without losing focus.
- Keyboard Macro: Record and replay complex key sequences.
- Background Automation: Send keys to specific windows without bringing them to the front.
- High Precision: Millisecond-accurate timing for sensitive tasks.
- Portable EXE: Single standalone executable with zero installation.
- Operating System: Windows 10/11 (x64)
- Runtime: None required (Release version is self-contained)
- Development: .NET 8 SDK (only if building from source)
Ensure you have the .NET 8 SDK installed.
git clone https://github.com/FosterG4/macro-tools.git
cd macro-toolsTo create a standalone, optimized executable (approx. 68MB):
cd MacroTool
dotnet publish -c ReleaseThe output file MacroTool.exe will be located in:
bin\Release\net8.0-windows\win-x64\publish\
- Run the Application: Double-click
MacroTool.exe. - Select Target:
- Click the dropdown menu to see a list of open windows.
- Select the window you want to send keys to.
- Click the Refresh (↻) button if your window isn't listed.
- Define Keys:
- Click the "Set" button (or the key input box).
- The button will turn orange, indicating "Recording Mode".
- Press the keys you want to automate (e.g.,
F1,Ctrl+A,Space). - The recording stops automatically after your input.
- Set Interval:
- Enter the time delay in milliseconds (e.g.,
1000for 1 second).
- Enter the time delay in milliseconds (e.g.,
- Add Macro:
- Click Add to put the task in the list.
- Manage Macros:
- Start/Stop: Check/Uncheck the "Active" box to toggle the macro.
- Edit Keys: Click the key text in the list to re-record.
- Edit Interval: Click the interval number to type a new value.
- Options:
- Focus: Brings the window to front before sending keys.
- HW: Uses hardware simulation (use only if standard mode fails).
If this tool helps you automate your workflow and saves you time, consider supporting its development. Your contributions help keep the project updated and free for everyone.
