A Python-based automation tool that captures specific math problems from the bottom left corner of the primary monitor, solves them, and inputs the answers into a game chat.
- 📖 Uses local Tesseract OCR installation from the repository to detect and extract math problems.
- 🔢 Real-time problem solving.
- 🎮 Automates keyboard input for in-game chats.
- 🔍 Continuous scanning with adjustable delays.
- Python 3.8+
pyautogui
pynput
pytesseract
Pillow
SneakMath requires Python 3.8 to run. If you haven't already installed it, follow the instructions below:
-
Download the Installer
Visit the official Python downloads page and download the installer for Python 3.8.6. NOTE: scroll down to the Files section and download one of the installers, The easiest and most straight forward installer is the
Windows x86-64 web-based installer
-
Run the Installer
Launch the installer. Ensure that you check the box that says ✔️ "Add Python 3.8 to PATH" at the bottom. This makes it easier to run Python from the command prompt.
-
Installation
Click on
Install Now
and wait for the installation to complete. -
Verify Installation
Open a new command prompt or terminal window and type:
python --version
You should seePython 3.8.x
displayed.
-
Clone the Repository
git clone https://github.com/Penlo/SneakMath.git
-
Navigate to Project Directory
cd sneakmath
-
Install Python Libraries
pip install -r requirements.txt
-
Tesseract OCR Setup
The Tesseract OCR executable is included within the Tesseract-OCR
folder in the repository. Ensure your script or environment is correctly pointed to use this local version.
- Prepare the Game/Application
Ensure it's running and in focus.
-
Run the Script
python sneakmath.py
-
Wait for the Magic ✨
The script scans the bottom-left corner for math problems, solves them, and types the answers in the chat.
- 🍴 Fork this repository.
- 🎋 Create your feature branch (
git checkout -b feature/fooBar
). - ✔️ Commit your changes (
git commit -am 'Add some fooBar'
). - 🔄 Push to the branch (
git push origin feature/fooBar
). - 📩 Open a new Pull Request.
We welcome feedback and bug reports! If you encounter any problems or have suggestions, please create an issue so we can address it. Follow the steps below to create an issue:
-
Navigate to the Issues Tab
Go to the Issues tab of the GitHub repository.
-
Check Existing Issues
Before creating a new issue, please check if someone else has reported the same problem or suggested the same enhancement. This helps avoid duplicate entries.
-
Create a New Issue
If your issue or suggestion is not already listed, click on the "New Issue" button.
-
Fill in the Issue Template
Provide as much information as possible in the issue template. Clear descriptions, steps to reproduce, and relevant screenshots can greatly assist in resolving issues faster.
-
Submit
After filling in the necessary details, submit the issue.
We appreciate your patience as we work through reported issues, and we prioritize them based on impact and user feedback. Thanks for helping improve SneakMath!