Python auto-clicker script that automates mouse clicks at defined intervals and visually indicates each click with a bubble overlay.
Project description
Auto Clicker Module
Python auto-clicker script that automates mouse clicks at defined intervals and visually indicates each click with a bubble overlay.
Installation
To install the module, use pip:
pip install auto-clicker
Usage
Command Line Usage
After installing the module, you can run the auto-clicker from the command line:
auto-clicker
This will start the auto-clicker with the default interval of 5 seconds.
Script Usage
You can also use the module in your own scripts. Here’s an example:
from auto_clicker import start_auto_clicker
# Define the time interval between clicks in seconds
click_interval = 5.0 # Change this value as needed
# Start the auto clicker
start_auto_clicker(click_interval)
Features
- Automates Mouse Clicks: Clicks the mouse at specified intervals.
- Visual Feedback: Shows a bubble overlay at the click location.
Examples
Running from the Command Line
-
Open a terminal or command prompt.
-
Run the following command:
auto-clicker
Running from a Python Script
-
Create a Python script file (e.g.,
run_clicker.py). -
Add the following code:
from auto_clicker import start_auto_clicker # Define the time interval between clicks in seconds click_interval = 5.0 # Change this value as needed # Start the auto clicker start_auto_clicker(click_interval)
-
Run the script:
python run_clicker.py
Customization
You can customize the click interval by passing a different value to the start_auto_clicker function:
from auto_clicker import start_auto_clicker
# Set a custom click interval (e.g., 2 seconds)
click_interval = 2.0
# Start the auto clicker with the custom interval
start_auto_clicker(click_interval)
Requirements
pyautogui: For automating mouse clicks.tkinter: For showing visual feedback (bubble overlay).
Both libraries should be installed automatically with the module. If you encounter any issues, you can install them manually:
pip install pyautogui
License
This project is licensed under the MIT License.
Contributing
If you would like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
Author
David Oduse (odusedavid@gmail.com)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auto_mouse_clicker_kingdavidjnr-0.0.1.tar.gz.
File metadata
- Download URL: auto_mouse_clicker_kingdavidjnr-0.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
654caed04e5b600067aa99483df4ddc963aa636b1769d599c49b832cb43e309e
|
|
| MD5 |
25ba9a585db3131262f244fce40ce020
|
|
| BLAKE2b-256 |
f86026b028008be5d978f486cbeab0a992c09e9fbc4cd0e69e1c9e4ae5331815
|
File details
Details for the file auto_mouse_clicker_KingDavidJnr-0.0.1-py3-none-any.whl.
File metadata
- Download URL: auto_mouse_clicker_KingDavidJnr-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf076193e7b6eeb5c47e9b40adf58be6c49952fa82ce33e3c3528a676a70c74
|
|
| MD5 |
9300dfbfa8a1fcb8c3dbc0f26ad4ca51
|
|
| BLAKE2b-256 |
2d8c06c6d0bd7ae7ac79ac202c1125b2657eef7ebd43dd971b1b9e6b197287c1
|