Who even remembers Windows 3.1? Yes, before Windows 95. Yes, there was a Windows before Windows 95. And it had a built in Macro Recorder.
Just for fun I dug out an old copy of Windows 3.1 and installed it into a VM. Here I am recording and replaying a macro using the Windows 3.1 Macro Recorder: