Fairly new at this and a little confused about the MessageBox widget. Some sample macros I have looked at use this widget to display a message and wait for an OK. I have coded a simple M6 macro which correctly
displays a message and waits for an OK before clearing the message box, but the Gcode continues to execute even when I have not hit OK. I want the Gcode to wait for the OK response from the MessageBox. Any help would be appreciated. Here is my macro:
function M6()
--Display reminder message for: expected tool and zeroing of Z.
local inst = mc.mcGetInstance()
local selectedtool = mc.mcToolGetSelected(inst)
local currenttool = mc.mcToolGetCurrent(inst)
local changetoo = mc.mcToolGetDesc(inst,selectedtool) --** Get tool description from tool table
lwx.wxMessageBox("Please verify the installation and zeroing of:\n - tool number "..selectedtool.."\n - "..changetoo)
--mc.mcCntlToolChangeManual(inst) -- Tried with this included but no difference
mc.mcToolSetCurrent(inst, selectedtool)
end
if (mc.mcInEditor() == 1) then
M6()
end