Would like to know why when I run this in a dialog event function it runs no GUI lockup but have to hit enter or press ok button a lot
But if I remove the MessageBox then I get a GUI lockup...
Thanks
[/ mc.mcAxisSetPos(inst, AxisNumber, 0); --"Zero Dro (0 is x, 1 y, and so on)
mc.mcCntlGcodeExecute(inst, 'G90 G0'..AxisLetter .. AxisEnteredDistance..'F1000'); - Machine will stop at distance set
local pos = 0
repeat
pos = mc.mcAxisGetPos(inst, AxisNumber)
wx.wxMessageBox("pos = "..pos.." AxisEnteredDistance = "..AxisEnteredDistance)
until pos == tonumber(AxisEnteredDistance)code]