https://github.com/willguimont/pyback
Record and replay action. Record a sequence of inputs (mouse & keyboard) then replay it. Python librairy
https://github.com/willguimont/pyback
playback python python-library
Last synced: 8 months ago
JSON representation
Record and replay action. Record a sequence of inputs (mouse & keyboard) then replay it. Python librairy
- Host: GitHub
- URL: https://github.com/willguimont/pyback
- Owner: willGuimont
- Created: 2016-10-08T23:00:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T21:31:37.000Z (over 7 years ago)
- Last Synced: 2025-04-05T03:02:44.581Z (about 1 year ago)
- Topics: playback, python, python-library
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pyback
Record and replay action. Record a sequence of inputs (mouse & keyboard) then replay it. Python librairy
# Example
```python
import time
from composer import Composer
from actor import Actor
if __name__ == '__main__':
# File where actions will be stored
actions = "actions.act"
# Composer that will record inputs for 5 seconds
cp = Composer(actions, time=5)
print("**Composing**")
# Start composing
cp.record()
while cp.is_running():
cp.update()
time.sleep(0.1)
# Do other stuff here...
# Actor that will play the act
ac = Actor(actions)
print("\n**Acting**")
# Start acting
ac.act()
```