Clone your repetitive PC tasks
Project description
pccloner
When you execute a task on your PC, it captures mouse and keyboard actions, including the cursor's position and a preceding screenshot. You can then replay the captured task whenever desired.
Supported Features:
- Capable of replaying double clicks and drag motions.
- Designed to replay almost all keystrokes (please report any unsupported key).
- Tested on Ubuntu 20.04 and Windows 11.
- Supports most common hotkeys (please report any unsupported hotkey).
Conditions for Optimal Performance: The stored task must be replayed on the same computer, and the screen's initial state during replay should closely resemble the initially stored screen state.
Known Issues:
- Occasionally, the collector records one additional scroll-down action than necessary.
- It is unable to accurately replay specific sequences of hotkeys such as: key1 + [(key2+key3) + key4 + (key5+key6)]. The replayer functions correctly when these sequences are separated by the release of previous keys such as: (key1+key2+key3), (key1+key4), (key1+key5+key6).
- Sometimes, in the process of minimizing a window, the size and location of the window are altered without our control. The replayer could fail in this case.
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. At replaying, you can exit the process pressing ESC.
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.10.tar.gz.
File metadata
- Download URL: pccloner-0.0.10.tar.gz
- Upload date:
- Size: 10.3 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 |
a56cf88fb2bc53a91c1e27773cee2cb2479ac31c11d400482548ac479d285084
|
|
| MD5 |
ef4829a62f8883c36ca00e757eca302f
|
|
| BLAKE2b-256 |
805d0d13bd5b10464cbc3603dd00f7d6f6e06ed3065d9ed9c472b7b399205032
|
File details
Details for the file pccloner-0.0.10-py3-none-any.whl.
File metadata
- Download URL: pccloner-0.0.10-py3-none-any.whl
- Upload date:
- Size: 9.5 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 |
72e1c37b26dbb20d062775b848bdd73d2e10dcb7d962b94050b0ce3f1b673d94
|
|
| MD5 |
ac2dd9d8fa5699a3d763a13b1701270a
|
|
| BLAKE2b-256 |
2a64c84756fff9bf717813d8afc19ac5c2b3f5045c7a2a8ec74bc844e470af1f
|