I found a VB script that will email me when executed. Most people set it up as an M30 macro. I am wanting to set it up as an M03 macro instead. My question is how do I get it to make the subject line of the email the next line in the G-Code? The reason for this is that Vectric Aspire will put the name of the step that it is running after every line with M03. I want an email to be sent to me every time a new step is ran with the subject line being the name of the step which requires reading that next line. Here is a sample of the applicable lines of G-Code as it is generated by aspire:
...
N350G00Z0.2000
N360S16000M03
(Step 1 - 8th - Inside Holes)
()
N390G00X4.0365Y4.7133Z0.2000
...
AND
...
N90880G00Z0.2000
N90890S16000M03
(Step 2 - 8th - Slow Profile Cut)
()
N90920G00X0.8160Y92.2155Z0.2000
...
Any help with reading the following line after the M03 so I can use it in my code like this would be appreciated:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = <<LINE IN G-CODE FILE AFTER LINE CONTAINING THE M03 THAT TRIGGERED THE MACRO GOES HERE>>
objMessage.From = """Me"" <me@my.com>"
objMessage.To = "******************xx@*********xx.com" *******************Insert Your Email address
objMessage.TextBody = "This is some sample message text.." & vbCRLF & "It was sent using SMTP authentication."
Thanks,
Matt