I was about to suggest the same thing. But maybe there is still another solution, setting the ‘Release message’ to OFF. It would look like this, involving three footswitches :
Footswitch 1 :
Command / Macro / RecordWithMarker1
→ call of a macro which would have the following commands :
Transport / Set Marker 1
Transport / Record
Footswitch 2 :
Command / Transport / Stop
Footswitch 3 :
Command / Transport / To Marker 1