Record and play keyboard and mouse clicks
Project description
🤖 Botable
Record and play keyboard and mouse clicks
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
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 botable-0.0.6.tar.gz.
File metadata
- Download URL: botable-0.0.6.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
131289152d636507cfe006f8b5a652dd1d16ece4a877b8161a12c672a920f568
|
|
| MD5 |
945588c57487164f10bc14ad0a2fc7a8
|
|
| BLAKE2b-256 |
d30134f99ab697a668b8b4142445a393c54ce7462797b4137062a13091ea9e81
|
File details
Details for the file botable-0.0.6-py3-none-any.whl.
File metadata
- Download URL: botable-0.0.6-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e5e8e78236ab4579568096f4353adf4e41296453c43b2889013a4e4fea92640
|
|
| MD5 |
89547287e0e288a6b9114e11fc8b204c
|
|
| BLAKE2b-256 |
865aa13fe36d7a91287d08cbcf2060034119bcce874b3cd52d65d3938d0189ad
|