Skip to content

willGuimont/Pyback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyback

Record and replay action. Record a sequence of inputs (mouse & keyboard) then replay it. Python librairy

Example

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()

About

Record and replay action. Record a sequence of inputs (mouse & keyboard) then replay it. Python librairy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages