To vospolzovatsya this macro - you have to drive 1 lap and after stopping at the depot to continue the route. You press the button (Yes) will teleport you on the starting point and you run the macro. All the macro is started it will go to open and close the door. And so povtoryaet as you like.
Download the program (Download) and go to the macro editor
press the button «Open file»
and select the downloaded file
assign a macro to a key and run the program