https://github.com/ebonnal/botable
Record and play keyboard and mouse clicks.
https://github.com/ebonnal/botable
keyboard-events mouse-events playback-controls python python3 recording
Last synced: 4 months ago
JSON representation
Record and play keyboard and mouse clicks.
- Host: GitHub
- URL: https://github.com/ebonnal/botable
- Owner: ebonnal
- License: apache-2.0
- Created: 2024-11-29T20:02:07.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-04T14:31:25.000Z (5 months ago)
- Last Synced: 2025-01-30T16:48:19.013Z (4 months ago)
- Topics: keyboard-events, mouse-events, playback-controls, python, python3, recording
- Language: Python
- Homepage:
- Size: 4.83 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# đ¤ Botable
> Record and play keyboard and mouse clicks[](https://github.com/ebonnal/botable/actions)
# install
```bash
pip install botable
```# use as a lib
```python
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:
```python
help(record)
help(play)
```# use as a cli
Here is the same scenario but using the command line interface:
```bash
# 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:
```bash
python -m botable --help
```# âšī¸ Stop
Press **f1** to stop the recording/playback. This is configurable, for example if you prefer to press *escape*:lib:
```python
play(recorded_events, exit_key="esc")
```
cli:
```bash
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:
```python
play(recorded_events, pause_key="space")
```
cli:
```bash
python -m botable [play/record] --pause-key space
```