231
Mach4 General Discussion / Re: Add or edit Mach4 Lathe screen
« on: November 09, 2018, 02:20:42 PM »
local snd=wx.wxSound('c:\\Windows\\Media\\chord.wav',0)
snd:Play()
HTH
RT
snd:Play()
HTH
RT
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
function m6001(hParam)
if (hParam ~= nil) then
--mc.mcCntlSetLastError(inst, 'handle == ' .. tostring(hParam));
local inst = mc.mcGetInstance();
local pVal = mc.mcCntlGetLocalVar(inst, hParam, mc.SV_P)
local pFlag = mc.mcCntlGetLocalVarFlag(inst, hParam, mc.SV_P)
if(pFlag == 1) then
rc=mc.mcToolSetDataExDbl(inst,61,'ZOffset',tonumber(pVal))
wx.wxMessageBox(tostring(rc)..' - '..tostring(pVal))
else
mc.mcCntlSetLastError(inst, 'ERROR: P Falue required with M6001');
mc.mcCntlEStop(inst);
end
else
mc.mcCntlSetLastError(inst, 'ERROR: handle == nil');
end
end
if (mc.mcInEditor() == 1) then
m6001()
end