111
Mach4 General Discussion / Re: Message Box with Cancel?
« on: February 10, 2018, 01:26:01 PM »
post the whole code you are using as I have tested what i posted and all works.
DazTheGas
DazTheGas
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.
local inst = mc.mcGetInstance()
repeat
local ActualTool = wx.wxGetNumberFromUser("What tool is in the turret?", "Tool # ","Current Tool", 1, 1, 6) -- Default, Min, Max.
until ActualTool ~= -1
--mc.mcToolSetCurrent(inst, ActualTool)
wx.wxMessageBox(tostring(ActualTool))