Hi,
i have a function that i've put in the load screen and i will like that when mach4 receive a m3 or m5 command, it trigger also this function. I I just don't know how.
Here is the code:
function Dustcollector()
TimerPanel = wx.wxPanel (wx.NULL, wx.wxID_ANY, wx.wxDefaultPosition, wx.wxSize( 0,0 ) )
timer = wx.wxTimer(TimerPanel)
local sig = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1)
mc.mcSignalSetState(sig, 1)
timer:Start(2000)
TimerPanel:Connect(wx.wxEVT_TIMER,
function (event)
mc.mcSignalSetState(sig, 0)
timer:Stop()
end)
end
Thanks