Daz,
Here is my entire macro. The repeat command works, to test this I kept hitting cancel and it pops back up as expected.
However, when I input a number, it acknowledges that number until it reads the "until" line, then the variable "ActualTool1" returns an ERROR instead of #.
--What is the actual tool?
function m110()
local inst = mc.mcGetInstance()
repeat
local ActualTool1 = wx.wxGetNumberFromUser("What tool is in the turret?", "Tool # ","Current Tool", 1, 1, 6) -- Default, Min, Max.
until (ActualTool1 ~= -1)
mc.mcToolSetCurrent(inst, ActualTool1)
end --m110
if (mc.mcInEditor() == 1) then
m110()
end