Hello Guest it is March 28, 2024, 09:41:37 AM

Author Topic: Quick M6 ATC question: where is this MTC message box coming from?  (Read 1819 times)

0 Members and 1 Guest are viewing this topic.

Quick M6 ATC question: where is this MTC message box coming from?
« 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
Re: Quick M6 ATC question: where is this MTC message box coming from?
« Reply #1 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Quick M6 ATC question: where is this MTC message box coming from?
« Reply #2 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
Re: Quick M6 ATC question: where is this MTC message box coming from?
« Reply #3 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Quick M6 ATC question: where is this MTC message box coming from?
« Reply #4 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.

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Quick M6 ATC question: where is this MTC message box coming from?
« Reply #5 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?
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Quick M6 ATC question: where is this MTC message box coming from?
« Reply #6 on: October 03, 2017, 02:11:36 AM »
Yes that checkbox has taken care of it.  Thanks Chaoticone.