Very quick hack to demonstrate a very simple macro system.
In this demo the macro triggers five screen changes and takes a screenshot of each screen. The macro waits for an small number of frame between each operation, as appropriate.
The demo shows the saved images in a image viewer to prove the screenshots have been taken.
At the end of the demo, the macro is loaded into a text editor and we can see macro instructions that produced the result.