Thank ckleea for sharing the codes to us. The main contribution of codes is that it would wait for 1 seconds or more before makeing the rest of digits to be made. This is a very important issue for some ordinary PABXs which requires long time to get PSTN lines.
You may learn from this example to write macro and the SendDTMF function.