Help Writing a Macro

I need help with a VERY simple custom macro but am unfamiliar with the language used for UCCNC in comparison to Mach3. For some reason no matter what I tried, mach 3 wouldn't work for me so I am trying this program to see about switching. It would run the macro just fine through the VB editor but when it actually came to running it during a program it wouldn't work, it would only activate or deactivate the spindle output.
The macro would replace the m3 and m5 macro and do the following:
M3:
activate spindle (
Sleep for xx seconds
activate second output
M5:
Deactivate second output
Sleep for xx seconds
Turn off spindle
Can anyone help me with the code for these?
The macro would replace the m3 and m5 macro and do the following:
M3:
activate spindle (
Sleep for xx seconds
activate second output
M5:
Deactivate second output
Sleep for xx seconds
Turn off spindle
Can anyone help me with the code for these?