The Java Macros Project is a versatile tool designed to automate repetitive tasks and enhance productivity. It allows users to define and execute custom macros in a Java-based environment, streamlining workflows and simplifying complex processes.
- Custom Macro Definitions: Create macros with specific triggers and actions.
- Environment Variable Integration: Use AES-256 to secure sensitive data on disk.
- User-Friendly Interface: Easy-to-navigate interface for managing and executing macros.
- Cross-Platform Support: Compatible with various operating systems.
- Robust Database Management: Uses a PostgreSQL database for storing and managing macro configurations.
git clone https://github.com/physine/macros.git
cd macros
- Java JDK 8 or later.
- PostgreSQL database, with a table defined like so (see persistence.xml for DB setup details):
CREATE TABLE macros ( id SERIAL PRIMARY KEY, trigger VARCHAR(255) NOT NULL UNIQUE, target VARCHAR(255) NOT NULL );
- Set an environment variable
AES_ENCRYPTION_KEY
of 32 bytes. Generate a key using:
python -c "import os, binascii; print(binascii.hexlify(os.urandom(16)).decode())"
Once in the macros
project directory:
cd path\to\macros
mvn package
Create a batch file to simplify the execution of the macros project, it will look like.
@echo off
java -jar target/macros-1.0.jar %*
and run it from the command line or add it to the start-up folder.
- active window macros maybe
Contributions are welcome! Feel free to submit pull requests, open issues, or suggest improvements.