
As I said before, this is just a quick hack.Press any key from keybaord to abort execution.
After recording, press F7 to repeat recorded events. Press F8 to start recording, F4 to end it. Starting ( /dev/input/event* files are readable for root only): Installation (it is just a single file, just compile it): Storing multiple macros at the same time. Possible improvements ideas that should all be quite easy to implement: There are many better macro-tools for those who don't need speed. The speed was the main motivation for writing this. But because it is just a quick hack, it is not perfect so trying to execute some very detailed movements can get timings wrong. You can even automate actions in 3rd person shooting games. Because it accesses the Linux input devices directly, it is really fast, much faster than normal macro recorders, especially written in Python that have several layers before they get access to the mouse and keyboard.
Many macro recorders focus on keyboard only.
It requires root access, because it interacts direct with /dev/input/event* files that are readable by root only. How is this different from other macro recorders:
The whole program is just 255 lines of code and should be relatively easy to understand for anyone who want to improve it. Tested in Ubuntu 20.04, automatic initialization of the devices might not work on other distributions as I just wrote quickly something that worked for me. This is a quick hack or proof of concept to record and reply keyboard and mouse input in Linux.