Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: BR549 on June 01, 2014, 02:41:30 AM

Title: WHAT DO YOU KNOW Mach4 can send email machine alerts (;-)
Post by: BR549 on June 01, 2014, 02:41:30 AM
It is a bit crude but it works (;-) Mach4 sent me a message today that Machine#549's  program was complete.

Title: Re: WHAT DO YOU KNOW Mach4 can send email machine alerts (;-)
Post by: poppabear on June 01, 2014, 08:26:25 AM
so like you say, post the code to do it.

Or did you just convert the VB to Lua... if so post your conversion.

Scott
Title: Re: WHAT DO YOU KNOW Mach4 can send email machine alerts (;-)
Post by: BR549 on June 01, 2014, 12:28:56 PM
HIYA Scott, LUA at present does not have any SMTP functional language in it . It has to rely on a SOCKET.smtp (plugin to Lua) WHICH Mach4 does not have yet. SO I used the os.execute to hop out to a VBS script that I had for Mach3. With a few mods it will run in VBS. 

IF Brain decides to include the Socket.smtp in his build of Mach4/Lua THEN we can do it right and have a full bodied Email function.

I will gladly send you a copy of the VBS script. But it is not something I would like to post here. I would have to strip out the security part of it THEN it would be harder to understand.

I also have a version of code to use a MODEM to send a text message to your phone for those that do not have the MACH4PC networked to the net.


I am just testing things as I remember we had for MACh3.   HUM??  IF Brian would put the Gcode side of MAch4 into Mach3 I dought I would ever upgrade. While Mach4 is very fast and powerfull it is ALSO extremely complicated script wise as compared to Mach3.

But Like I have said IF the GUI is done correctly there is LITTLE to NO need to go scripting in Mach4. It should already be done for you.

(;-) TP
Mach3 WAS extremely handy in a lot of ways. 

(;-) TP
Title: Re: WHAT DO YOU KNOW Mach4 can send email machine alerts (;-)
Post by: BR549 on June 01, 2014, 12:36:22 PM
Scott, check your email(;-)  The code is ALSO in the Mach Tool Box where no one ever visits.

We REALLY DO need a Mach4 version of the MachTool Box. Things get lost posting stuff every where else.

(;-) TP
Title: Re: WHAT DO YOU KNOW Mach4 can send email machine alerts (;-)
Post by: BR549 on June 01, 2014, 02:13:34 PM
A copy of the VBS code is here

http://www.machsupport.com/forum/index.php/topic,18970.0.html

(;-) TP
Title: Re: WHAT DO YOU KNOW Mach4 can send email machine alerts (;-)
Post by: Chaoticone on June 01, 2014, 02:47:17 PM
Scott, check your email(;-)  The code is ALSO in the Mach Tool Box where no one ever visits.

We REALLY DO need a Mach4 version of the MachTool Box. Things get lost posting stuff every where else.

(;-) TP

I agree.

http://www.machsupport.com/forum/index.php/topic,27367.msg193298.html#msg193298

Brett