I tried a test, and Mach3 executes macros in preparation for RFH. When clicking "RFH", Mach3 does the macros up to before the RFH line. After that, Mach3 needs a click on Run for the preparatory move and another click on Run for running from the RFH line. Consequences for renatos problem to be discussed later.
Macro used was: (file M71.m1s in folder \mach3\macros\ your profile name \
'M71
public m71call
m71call=m71call+1
p = param1()
msgbox"in m71" & " m71call=" & m71call & ", p="&p
G Code was:
(beginn)
G0 X0
m71 p10
M71 p15
G0 X1
m71 p20
G0 X2
%
To explain the test, p10, p15 and p20 are arguments to the macro. Reading them in the macro is thru the Param1() function. The arguments help to distinguish and identify the macro calls, in this test.