A library able to control mouse for auto-clicking
Project description
clickpy
A library able to control mouse (mainly for auto-clicking)
Installation
[!WARNING] The package will be installed on non-Windows platforms with no errors.
This is for automation purposes only, as the package will only work on Windows.
From PyPI
pip3 install clickpy
From GitHub
pip3 install git+https://github.com/donno2048/clickpy
Usage
Here's the method listing for the package.
click_here: The method will create a click at the current location
Example usage:
from clickpy import click_here
click_here()
click_at: The method will create a click at the specified (x,y) coordinates
Example usage:
from clickpy import click_at
click_at((0,0))
clicks_here: The method will create a certain amount of click at the current location The method has a number of optional keyword arguments:ms_delay- the delay in milliseconds between the clicks [default: at fast as the OS allows]total_clicks- the total clicks to be sent [default: infinitely many]key_stop- a virtual key code that when entered in the keyboard the clicks will stop at once - e.g.ord('a'.upper())to stop onakey press [default: stop only aftertotal_clicksclicks]key_start- similar tokey_stopbut for starting the clicks [default: start immediately]stop_modifier- the modifier (e.g.ALT,CONTROL,SHIFTandWIN) forkey_stopstart_modifier- the modifier forkey_start
Example usage:
from clickpy import clicks_here, SHIFT, ALT
# will start clicking at the cursor's position one million times with 10ms delay in between when 0 is pressed and stop upon SHIFT+ALT+0
clicks_here(ms_delay=10, total_clicks=1_000_000, key_stop=ord('0'), key_start=ord('0'), stop_modifier=SHIFT|ALT)
clicks_at: The method will create a certain amount of clicks at the specified location The method expects the same (optional) keyword arguments asclicks_herebut also a (x,y) coordinates tuple which can be provided as a positional argument or as thepositionkeyword
Example usage:
from clickpy import clicks_at, SHIFT, ALT
# same as the clicks_here example but at (0,0)
clicks_at((0,0), ms_delay=10, total_clicks=1_000_000, key_stop=ord('0'), key_start=ord('0'), stop_modifier=SHIFT|ALT)
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
clickpy-1.0.0.tar.gz
(4.5 kB
view details)
File details
Details for the file clickpy-1.0.0.tar.gz.
File metadata
- Download URL: clickpy-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f157d41ce4d55e9133346623afa8e621d2bce39bdefe5e898ffe3a1e9e282c92
|
|
| MD5 |
53f5d9cc1a1eb0d03417e3638e00b4fe
|
|
| BLAKE2b-256 |
26ada7a02941b2ee82283ce0e9852169a9a2a6b9c4ae5929c3944a2fb236b6a4
|
Provenance
The following attestation bundles were made for clickpy-1.0.0.tar.gz:
Publisher:
python-publish.yml on donno2048/clickpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clickpy-1.0.0.tar.gz -
Subject digest:
f157d41ce4d55e9133346623afa8e621d2bce39bdefe5e898ffe3a1e9e282c92 - Sigstore transparency entry: 1391460530
- Sigstore integration time:
-
Permalink:
donno2048/clickpy@91336c4bb6d6b1bce0cb0f75a57aee93b369c13b -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/donno2048
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@91336c4bb6d6b1bce0cb0f75a57aee93b369c13b -
Trigger Event:
release
-
Statement type: