Observe that the “Record History” automatically gets disabled afterwards.
I want to be able to perform step 1 without having to explicitly click on the button located on the status bar, but rather use a macro like _History _OneShot=Yes. The code for doing this clearly exists, because that is how it works when using the status bar.