I don’t know of any. You could hire a very savvy programmer that could probably capture that info or call IBM Support and see what they have in their tool bag.
I have never heard of anything that would accomplish that on the System i side of things.
Client Access for 5250 emulation on the iSeries can record a macro file. Either in a VBSscrip format, or a macro format. You can then copy or edit the file to your needs.