/WasherAutoMacro

WasherAutoMacro is a Python automation tool for mobile gaming via computer mirroring. It uses hotkeys for macros that click within defined areas, adding randomness to mimic human clicks. Configurable through JSON, it's adaptable for various gaming scenarios.

Primary LanguagePython

WasherAutoMacro

WasherAutoMacro is a Python script aimed at automating actions in mobile games through mirroring software on a computer. It uses keyboard hotkeys to trigger macros that perform clicks on predefined screen positions, incorporating randomness to mimic human behavior more closely.

Features

  • Easy configuration through a JSON file.
  • Supports multiple macros with randomized click positions.
  • Logs actions for easy tracking.

Getting Started

Installation

To get started with WasherAutoMacro, clone this repository and navigate into the project directory:

git clone https://github.com/Washer34/WasherAutoMacro.git
cd WasherAutoMacro

Setting up the Environment

Prerequisites

Virtual Environment

Creating the Environment
python3 -m venv env
Activating the Environment
  • On macOS and Linux:
source env/bin/activate
  • On Windows:
.\env\Scripts\activate

Installing Dependencies

install the necessary dependencies from the requirements.txtfile:

pip install -r requirements.txt

Configuring Macros

Edit the config.json file to set up your macros. Each macro should have a key (used to trigger it) and a position (defined by the top left and the bottom right corners of the click area).

  • You can use WasherFindKey.py script to find the ID of your keys.
  • You can use WasherFindPosition.py script to find the cursor's position when you click.

Running the script

Run the main script:

python WasherAutoMacro.py

Contributing

Feel free to fork the project, submit pull requests, open issues for suggestions, or report bugs.

License

This project is open-sourced under the MIT License.