You only need a singlee buton for each process of store position and return to position.
Create 2 buttons. Then put the following codes into the proper button.
Button to store positions.
'Macro to store points
SetVar(200,GetDro(0)) 'X position
SetVar(201,GetDro(1)) 'Y position
SetVar(202,GetDro(2)) 'Z position
End
Button to return to stored point.
,Macro to return to points
Code" G00 X " & GetVar(200) &" Y " &GetVar(201) 'Return to Stored XY points
Code" G00 Z " & GetVar(202) 'Return to Stored Z point
End