toca

A library for record/display keyboard and mouse actions in a period of time.

You can find the usage method in the examples folder.