Skip to main content

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 all hotkeys and sequences of 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. This produces not replaying well the task.
  • Sometimes, in the process of minimizing a window, the size and location of the window are different w.r.t the original stored task. 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

  1. Write a python script with following lines:
File: collector.py

from pccloner.pcdata import Collector

pc = Collector()
pc.start()
  1. Run the previous script. On Ubuntu: sudo [your python path here] collector.py. Or on Windows: python collector.py

  2. 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/

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pccloner-0.0.11.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pccloner-0.0.11-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file pccloner-0.0.11.tar.gz.

File metadata

  • Download URL: pccloner-0.0.11.tar.gz
  • Upload date:
  • Size: 10.2 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

Hashes for pccloner-0.0.11.tar.gz
Algorithm Hash digest
SHA256 67ba516855cf5a4d85b4451f233bb565a563819d7174500cf3582a433193cdc1
MD5 49fdcede18b1df7d1eabb115d75879b5
BLAKE2b-256 0c46fbc13af0b8591015b72d90212dad786d1affb64b3050b7fd252f2da89aa8

See more details on using hashes here.

File details

Details for the file pccloner-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: pccloner-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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

Hashes for pccloner-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5a27f6dddc31acb985c41348e832b97c3e81e6b71d6f7b1413463c4c4f733e31
MD5 99418c9092fc773d2108d38a90dfa334
BLAKE2b-256 f485384c99cdb77f71bd4f1dcc9c6fe2cc930edf3c273de83fa99ddca3d7d1c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page