Clone your repetitive PC tasks
Project description
pccloner
When you perform a task on your PC, it stores mouse and keyboard actions along with the concurrent cursor position (and preceding screenshot) and then you can replay the stored task when you want.
Supported features:
- It can replay double clicks and drag motions
- It is prepared to replay almost all single keyboard events (please report to me if you find one not supported)
- It has been tested on Ubuntu 20.04 and Windows 11.
Current limitations:
- Hotkeys are not supported.
- The initial screen state at replaying must be similar to the stored initial screen state to work well.
- Store task must be replayed in the same computer.
Authors
Installation
pip install pccloner
On ubuntu: it requires to install gnome-screenshot.
sudo apt install gnome-screenshot
Usage
- Write a python script with following lines:
File: collector.py
from pccloner.pcdata import Collector
pc = Collector()
pc.start()
-
Run the previous script. On Ubuntu:
sudo [your python path here] collector.py. Or on Windows:python collector.py -
Press the ESC key to start recording. And don't forget to press again the ESC key to terminate the recording. This code will create a folder called "data" where it will save all the data related to your task. Note: On Ubuntu, it is useful, not necesary, to change the permissions of the data folder with
sudo chown -R $USER:$USER data/ -
Use the following example to replay your previous stored task.
from pccloner.pctask import Replayer
import pandas as pd
sample_paths = glob('./data/*/*.csv') # Select the right path of your stored tasks
ix_sample = 2 # Select your stored task
sample = pd.read_csv(sample_paths[ix_sample], index_col=0)
task1 = Replayer(sample, data_dir='./')
task1.execute()
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 pccloner-0.0.9.tar.gz.
File metadata
- Download URL: pccloner-0.0.9.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
425a6d7f94746943cb771bf42778670af1e220908eef21bcf996ae86e97536f5
|
|
| MD5 |
ff7186f2951fa640f34bdfc0930237f7
|
|
| BLAKE2b-256 |
cfb4db80a54f4eb4990af34b85dd53ce8ee87170a994266014378f94311943a4
|
File details
Details for the file pccloner-0.0.9-py3-none-any.whl.
File metadata
- Download URL: pccloner-0.0.9-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8590dc9c13b8c0d39fe53cb004a4db931730a6d3f568d33947f4904915e3ef2
|
|
| MD5 |
09615c174d6ad203afca488f3e3e7da8
|
|
| BLAKE2b-256 |
e3e12b2fab0307bee67c7112f8ef2c8f9644615e6e912b2a06372227dba49d8a
|