This project is an automation tool for the game Case Clicker 2, written in Python. It uses the pyautogui
and win32api
libraries to simulate mouse movements and clicks, as well as to detect objects on the screen.
- Automatic Clicking: The tool simulates mouse clicks at a specified speed with random offsets to mimic human behavior.
- Object Detection: The tool can detect various objects on the screen, such as boosters and money bags, and automatically move the cursor to them.
- Smooth Mouse Movements: The tool simulates smooth mouse movements instead of moving the cursor directly to the target. Additionally, the mouse movements are slightly random to mimic natural human movements.
- Multithreading: The tool uses multithreading to perform various tasks simultaneously, such as clicking, object detection, and checking if the earn menu is active.
The project consists of several files:
main.py
: The main file that starts all threads.clicking.py
: Contains functions to simulate mouse clicks and movements.detection.py
: Contains functions to detect objects on the screen.SmoothCursor.py
: Contains theSmoothCursor
class that simulates smooth mouse movements.constants.py
: Contains global variables used throughout the project.utils.py
: Contains utility functions, such as checking if the earn menu is active.gui.py
: Contains code responsible for the graphical user interface (GUI). The GUI is still under development.
-
Install the required libraries by running the following command in the terminal:
pip install -r requirements.txt
-
Run the
main.py
file and let the tool automatically play Case Clicker 2 for you. You can stop and resume the tool by pressing the appropriate keys (default 'delete' and 'p').
The program fully shows its capabilities after a few minutes of gameplay when we can afford upgrades (boosters and money bags).
A save file with unlocked upgrades is available in the setup
folder. To use this save, go to "About & Settings" and then "Load Save" on the game's website.