2024-05-14.21-45-44.mp4
This Python script is designed to automate the process of searching for specific images on the screen and clicking on them when found. It utilizes computer vision techniques to locate images and the pyautogui
library for simulating mouse clicks.
- Image Recognition: Uses template matching to locate images on the screen.
- Killswitch: Implements a killswitch functionality to stop the script execution.
- Logging: Logs events and errors to a file for debugging and monitoring.
- Customizable: Allows customization of parameters such as threshold, click delay, and killswitch key.
- Python 3.x
- OpenCV (
cv2
) - NumPy
- PyAutoGUI
- win32gui
- keyboard
- Clone or download the repository.
- Install the required libraries using pip:
pip install opencv-python numpy pyautogui pypiwin32 keyboard
- Modify the
image_paths
list in the script to include the paths of the images you want to search for. - Optionally adjust parameters such as threshold, click delay, and killswitch key according to your requirements.
- Run the script: python Image-Clicker(v1.2).py
- Press the killswitch key (default: 'q') to stop the script execution.
threshold
: Adjusts the sensitivity of image recognition. Higher values result in stricter matching.click_delay
: Specifies the delay (in seconds) between consecutive clicks.killswitch_key
: Defines the key to activate the killswitch and terminate the script.
Contributions are welcome! Feel free to open an issue or submit a pull request.
- Author: 2cz5
- GitHub: 2cz5
- Discord: 2cz5 (for questions, feedback, etc.)