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.
Current limitations:
- No drag actions
- Not pressed two keys o more at the same time
- The replayer is not prepared for all events
- It has been tested only on Ubuntu 20.04.
- The initial screen state at replaying must be similar to the stored initial screen state.
- Your replayed task performs well on the same computer with similar conditions.
Authors
Installation
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pccloner
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.8.tar.gz.
File metadata
- Download URL: pccloner-0.0.8.tar.gz
- Upload date:
- Size: 5.5 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 |
70c60b00741606a18de4efb8291b2bd4d6386f73592308ba1db78ad8d9e457a5
|
|
| MD5 |
7fb39c8f2209fa7dec62641025921470
|
|
| BLAKE2b-256 |
0a907d1c947b4026585d83dd361a122796e9c7f96b6af196ee12fc5d7f4e5c93
|
File details
Details for the file pccloner-0.0.8-py3-none-any.whl.
File metadata
- Download URL: pccloner-0.0.8-py3-none-any.whl
- Upload date:
- Size: 5.9 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 |
df26712a8f6b8c9c53d93fa612239f924070edb43995ff282a17e94b5647000c
|
|
| MD5 |
bdf755d7adef978642f4827f11c51c18
|
|
| BLAKE2b-256 |
c5406844ceebc11dcf20a050f6d58cf71c83503706309b47e22cf60151d7d581
|