Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Durero on September 27, 2017, 06:08:45 PM

Title: Quick M6 ATC question: where is this MTC message box coming from?
Post by: Durero on September 27, 2017, 06:08:45 PM
I'm doing my best to follow the M6 scripting example in the Lua Scripting Manual.

I'm adapting the example script for my machine and ATC, but when I run it this MTC message box appears (see attached image.)

I'm not asking for any message box anywhere in my M6 script.  Can anyone enlighten me as to why this keeps appearing and where it lives in Mach4?

Thanks in advance for any clues!

Leo
Title: Re: Quick M6 ATC question: where is this MTC message box coming from?
Post by: joeaverage on September 27, 2017, 06:29:00 PM
Hi,
what exactly have you named your toolchange macro? Mach interprets all macros as lowercase m,
as a consequence Mach may not be running your macro at all but another.

I've seen that message, its included in a manual toolchange macro. You can see it in Mach4Hobby/LuaExamples/Toolchange..
I'm guessing thats where the messagebox is coming from but why is it running?

Craig
Title: Re: Quick M6 ATC question: where is this MTC message box coming from?
Post by: Durero on September 27, 2017, 07:00:37 PM
Hi Craig, my script is named m6.mcs

I'm trying to understand where else Mach4 might be looking for code relating to m6. My macro folder is empty except for my m6 script and mcLua.mcc
Title: Re: Quick M6 ATC question: where is this MTC message box coming from?
Post by: joeaverage on September 27, 2017, 07:09:02 PM
Hi,
as I said, I suspect the script which is actually running is in  LUAExapmles folder, you'll need Explorer to
find it.

Craig
Title: Re: Quick M6 ATC question: where is this MTC message box coming from?
Post by: Durero on September 27, 2017, 08:06:24 PM
Hi Craig, yes I've checked all of the other m6 scripts in other profiles and the Lua examples folders but I still don't see any wx.wxMessageBox calls in any of them.

The MTC message box stays away when the "do not display again " checkbox is ticked, so I guess I can live with the workaround. Just wish I understood where it was coming from in the first place.
Title: Re: Quick M6 ATC question: where is this MTC message box coming from?
Post by: Chaoticone on September 27, 2017, 08:39:51 PM
That message box lives in the master module. it has parameters set in the screen load script. If you don't want to see the message box, have you tried clicking the "Don't show message again" tick box in it?
Title: Re: Quick M6 ATC question: where is this MTC message box coming from?
Post by: Durero on October 03, 2017, 02:11:36 AM
Yes that checkbox has taken care of it.  Thanks Chaoticone.