I am the developer for 123Autoit-nonroot, the latest version has include the function of macro record and play back action, the app is free to use. 

here is the demo of the Macro Record and playback
[123Autoit-nonroot action record and playback demo][1]


  [1]: https://www.youtube.com/watch?v=u8xRc0PZB6Y