Skip to main content

Record and play keyboard and mouse clicks

Project description

🤖 Botable

Record and play keyboard and mouse clicks

Actions Status Actions Status

install

pip install botable

use as a lib

from botable import record, play

# collects the recorded events
recorded_events = list(record())

# press f1 to stop the recording when you are done

# plays 3 times the recorded events and collects the played events
played_events = list(play(recorded_events, loops=3))

Help:

help(record)
help(play)

use as a cli

Here is the same scenario but using the command line interface:

# saves the recorded events in /tmp/recorded_events.py
python -m botable record > /tmp/recorded_events.py

# press f1 to stop the recording when you are done

# plays 3 times the recorded events and saves the played events in /tmp/played_events.py
cat ./recorded_events.py | python -m botable play --playback-loops 3 > /tmp/played_events.py

Help:

python -m botable --help

⏹️ Stop

Press f1 to stop the recording/playback. This is configurable, for example if you prefer to press escape:

lib:

play(recorded_events, exit_key="esc")

cli:

python -m botable [play/record] --exit-key esc

⏸️ Pause/Resume

Press f2 to pause/resume the recording/playback. This is configurable, for example if you prefer to press space:

lib:

play(recorded_events, pause_key="space")

cli:

python -m botable [play/record] --pause-key space

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

botable-0.0.7.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

botable-0.0.7-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file botable-0.0.7.tar.gz.

File metadata

  • Download URL: botable-0.0.7.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for botable-0.0.7.tar.gz
Algorithm Hash digest
SHA256 130d7113592a04334a4aa86dcb70c5363821b0ac0dc8dd47eaa9f30f16150ab2
MD5 509cc3e2791dad6ca4fbe2ae71670ff0
BLAKE2b-256 fcc47357ca3182066e2d0548a9e9db6eaeb853351e2299a6d55e269c6d5f42f1

See more details on using hashes here.

File details

Details for the file botable-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: botable-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for botable-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 99e05236ba8037abadb6ab70a45543edbd8f00dbd3689091e6652a45c3b4fcd2
MD5 032952c52b058288db6285d53db143bb
BLAKE2b-256 213836d986c4934a27cf1699f608fca6ad3addd4d0709eed3f98204a1b42a539

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